yat
0.14.5pre
|
Tukey's Biweight Estimator. More...
#include <yat/statistics/TukeyBiweightEstimator.h>
Public Member Functions | |
TukeyBiweightEstimator (double cutoff=4.685, bool sorted=false) | |
Constructor. More... | |
template<typename RandomAccessIterator > | |
double | operator() (RandomAccessIterator first, RandomAccessIterator last) const |
Tukey's Biweight Estimator.
Calculates the estimate as a weighted sum
where the sums run over data points with |u|<1 and u is calculated as
As the estimate m also appears on right-hand side, the estimate is calculated in an iterative manner.
|
inlineexplicit |
Constructor.
cutoff | defines how close to the center (estimate) a data point needs to be (in terms of MADs) to influence the estimate. |
sorted | if true object presumes input is a sorted range; otherwise object creates a sorted copy of the range and base the computation on that. |
double theplu::yat::statistics::TukeyBiweightEstimator::operator() | ( | RandomAccessIterator | first, |
RandomAccessIterator | last | ||
) | const |
Type Requirements:
RandomAccessIterator
must be a Data IteratorRandomAccessIterator
must be a Random Access Traversal Iterator