yat
0.11.3pre
|
Tukey's Biweight Estimator. More...
#include <yat/statistics/TukeyBiweightEstimator.h>
Public Member Functions | |
TukeyBiweightEstimator (double cutoff=4.685, bool sorted=false) | |
Constructor. | |
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 pressumes input is a sorted range; otherwise object works on a copy of the range which will be sorted. |
double theplu::yat::statistics::TukeyBiweightEstimator::operator() | ( | RandomAccessIterator | first, |
RandomAccessIterator | last | ||
) | const |