Syntax:
<feature set> offset <feature> <source> [optional flags]
fs offset featY featX -alpha 0.01 -mean 2.5
This methods provides an adaptive offset removal (and normalization) for SVector as well as FMatrix features. The mean (mean vector for FMatrix features) is reestimated for each new value x(i):
mean(i) = alpha * x(i) + (1-alpha) * mean(i-1) y(i) = x(i) - mean(i)
fs offset featY featX -alpha 0.01 -mean 2.5 -smean 10.7 -a 1
Same thing can be done for the mean of squares that can be used to calculate the standard deviation.
smean(i) = alpha * x(i)^2 + (1-alpha) * smean(i-1) dev(i) = sqrt(smean(i) - mean(i)^2) y(i) = ( x(i) - mean(i) ) / ( a * dev(i) )
fs offset featY featX -alpha 0.01 -mean meanvec -smean smeanvec -upMean meanvec -upSMean smeanvec
By using the flags -upMean
and -upSMean
you can update
the resulting mean vectors of an FMatrix feature in FVector objects for later use.
In runon mode you should give the same FVector object
as start value and update name as in the example.
-alpha <float>
-mean <float_or_FVector>
-smean <float_or_FVector>
-a <float>
-upMean <FVector object>
-upSMean <FVector object>
-mindev <float>