PLS_Toolbox Documentation: med2top | < mdcheck | medcn > |
med2top
Purpose
Fits a constant to top/(bottom) of data.
Synopsis
[yf,residual,options] = med2top(y,options)
Description
MED2TOP is similar to LSQ2TOP with a 0 order polynomial, it can be considered an asymmetric estimate of the mean.
For fitting to the bottom:
>> tsq = residual/res; % (res) is an input
>> tsqst = ttestp(1-options.tsqlim,5000,2); % T-test limit from table
>> ii = find(tsq>-tsqst); % finds samples below the line
The ii samples are kept for the next estimate of (yf):
>> yf = median(y(ii));
INPUTS:
OUTPUTS:
Options
See Also
baseline, baselinew, fastnnls, lsq2top
< mdcheck | medcn > |