Expand description
Filters a flight log’s channels are cleaned with before a reading is taken from them.
Functions§
- hampel
- The Hampel filter: each sample more than
thresholdrobust standard deviations from its window’s median replaced by that median, the scale being 1.4826 times the window’s median absolute deviation (R. K. Pearson et al., The Class of Generalized Hampel Filters, EUSIPCO 2015, §2, eqs. 1 and 2, withK = halfandt = threshold). Windows are cut short at the ends and skipNaNs, as inrunning_median, which is this filter atthreshold = 0. - running_
median - The running median of
values: each sample replaced by the median of the samples withinhalfplaces of it, the window cut short at either end of the record.NaNs are skipped; a window with no finite sample givesNaN. An even count takes the mean of the middle two.