/*   
 *  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.   
 */ 
/***************************************************************************/ 
/*                                                                         */ 
/*     FQR_RLS . hpp		                                           */ 
/*                                                                         */ 
/*     Recoursive Fast QR RLS Algorithm inplementation.			   */ 
/*			  				                   */ 
/*                                                                         */ 
/***************************************************************************/ 
 
#ifndef _FQR_RLS_HPP_ 
#define _FQR_RLS_HPP_ 
 
#include "sysIdent.hpp" 
#include "MatrixCal.hpp"
#include <cmath> // For the abs() function
#include <cstdlib> 
 
class FQR_RLS_alg : public sysid { 
 
	float *s; 
	float *f; 
	float *fp; 
	float *fs; 
	float *beta; 
 
	Matrix Mtemp; // Temporary result holder matrix 
	 
	float lambda; 
 
public: 
 
	void update(float y_n, float u_n_1); 
	FQR_RLS_alg(float fa,int is,int ia,int ib,int ic) ; 
	~FQR_RLS_alg(); 
}; 
 
 
#endif // _FQR_RLS_HPP_
