/*
 *  Copyright 2002 by Soos, Antal
 *  All rights reserved. Property of Soos, Antal.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.  
 */
/***************************************************************************/
/*                                                                         */
/*     LMS . hpp		                                           */
/*                                                                         */
/*     Recoursive Least Mean Square Algorithm inplementation.              */
/*									   */
/*                                                                         */
/***************************************************************************/

#ifndef _LMS_HPP_
#define _LMS_HPP_

#include "sysIdent.hpp"

class LMS_alg : public sysid {
	protected:

	float a ; // a : step size waigting factor a >= 0
	float Mtemp_v[ARMAX_dim+2];
	Matrix Mtemp; // Temporary result holder matrix

public:

	void update(float y_n, float u_n_1);
	LMS_alg(float fa) ;
	~LMS_alg();
};


#endif // _LMS_HPP_
