#rls
function for Scilab
This function creates an AdaptiveAlgorithm Object for Recursive Least Square Algorithm to use it with lineareq
or dfe
to create an equalizer object.
This function has been developed for Communication toolbox in Scilab under Project FOSSEE Toolbox.
- Change current directory to
path/to/function/
. - In Scilab prompt, run:
exec('rls.sci')
. This will load the function in environment.
The function is tested on Scilab 5.5.2. There is no specific OS requirement.
alg = rls(forgetfactor, invcorr0)
-
Input Arguments:
forgetfactor
: Any non-negative real number. It is forgetfactor parameter for RLS algorithm.invcorr0
: Real number between 0 to 1. It sets initialisation parameter for inverse correlation matrix. (Default = 1)
-
Output:
alg
: Adaptive Alagorithm Object based on Input parameters. Implemented as a Structure type.
alg = rls(0.1)
Output:
alg =
AlgType: "RLS"
ForgetFactor: 0.1
InvCorrInit: 1
This file must be used under the terms of the CeCILL.
This source file is licensed as described in the file COPYING, which
you should have received as part of this distribution. The terms
are also available at
http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt