Time domain Fit


ltpda_timedomainfit.m uses the MATLAB function lscov.m to fit a set of time-series AOs to a target time-series AO. It gives back a set of fitting coefficients.

One can now subtract the fitted time series from the original one - the target- and produce a new time series by calling ltpda_lincom.m with the calculated coefficients. This function does a linear combination of the inputted coefficients and analysis objects and subtracts the result from the target analysis object, which has to be the first input parameter.

An example:

 
	coeffsAO = ltpda_timedomainfit(target, ts1, ts2, ts3, ts4);

	%% Make linear combination 

	x12ns = ltpda_lincom(target, ts1, ts2, ts3, ts4, coeffsAO);
	

x12ns represents the noise subtracted target analysis object. With noise here the fitted time series is meant. That is the linear combination of the coefficients coeffsAO and the time series objects ts1 to ts4.

The number of time or frequency series analysis objects is variable.
The first is always taken as target object.




©LTP Team