/* 
 *  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.   
 */ 
/***************************************************************************/ 
/*                                                                         */ 
/*     IQR_RLS . hpp		                                               */ 
/*                                                                         */ 
/*     Recoursive Least Mean Square Algorithm inplementation.              */ 
/*																	       */ 
/*                                                                         */ 
/***************************************************************************/ 
 
#ifndef _IQR_RLS_HPP_ 
#define _IQR_RLS_HPP_ 
 
#include "sysIdent.hpp" 

class IQR_RLS_alg : public sysid { 
 
	 
	Matrix Mtemp; // Temporary result holder matrix 
 
	float  **R;		// Matrix pointer: 
	float  **u;		// Matrix pointer: 
	 
	float *b;		// Vector pointer; 
	float *a;		// Vector pointer 
	float *s;		// Vector pointer 
	float *c;		// Vector pointer	 
 
	float lambdaisqrt; 
 
public: 
 
	void update(float y_n, float u_n_1); 
	IQR_RLS_alg(float fa,int is,int ia,int ib,int ic) ; 
	~IQR_RLS_alg(); 
}; 
 
 
#endif // _IQR_RLS_HPP_
