/* ======================================================================== */ /* TEXAS INSTRUMENTS, INC. */ /* */ /* NAME */ /* DSPF_sp_lms - Implementation of the floating point LMS algorithm */ /* */ /* USAGE */ /* */ /* This routine is C callable, and has the following C prototype: */ /* float DSPF_sp_lms (float *x, */ /* float *h, */ /* float *desired, */ /* float *r, */ /* float adaptrate, */ /* float error, */ /* int nh, */ /* int nr */ /* ) */ /* */ /* x : Pointer to input samples */ /* h : Pointer to the coefficient array */ /* desired : Pointer to the desired output array */ /* r : Pointer to filtered output array */ /* adaptrate: Adaptation rate */ /* error : Initial error */ /* nh : Number of coefficients */ /* nr : Number of output samples */ /* */ /* DESCRIPTION */ /* */ /* The DSPF_sp_lms implements an LMS adaptive filter. Given an actual input*/ /* signal and a desired input signal, the filter produces an output */ /* signal, the final coefficient values and returns the final output */ /* error signal. */ /* */ /* ------------------------------------------------------------------------ */ /* Copyright (c) 2003 Texas Instruments, Incorporated. */ /* All Rights Reserved. */ /* ======================================================================== */ #ifndef DSPF_SP_LMS_ #define DSPF_SP_LMS_ 1 float DSPF_sp_lms(float *x, /* Pointer to input samples */ float *h, /* Pointer to the coefficient array */ float *desired, /* Pointer to the desired output array */ float *r, /* Pointer to filtered output array */ float adaptrate, /* Adaptation rate */ float error, /* Initial error */ int nh, /* Number of coefficients */ int nr /* Number of output samples */ ); #endif /* ========================================================================*/ /* End of file: dspf_sp_lms.h */ /* ------------------------------------------------------------------------*/ /* Copyright (c) 2003 Texas Instruments, Incorporated. */ /* All Rights Reserved. */ /* ========================================================================*/