yat  0.10.4pre
Public Member Functions
theplu::yat::statistics::TukeyBiweightEstimator Class Reference

Tukey's Biweight Estimator. More...

#include </scratch/bob/jari/tmp/pristine/yat-0.10.x/yat/statistics/TukeyBiweightEstimator.h>

List of all members.

Public Member Functions

 TukeyBiweightEstimator (double cutoff=4.685, bool sorted=false)
 Constructor.
template<typename RandomAccessIterator >
double operator() (RandomAccessIterator first, RandomAccessIterator last) const

Detailed Description

Tukey's Biweight Estimator.

Calculates the estimate as a weighted sum

$ m = \frac{\sum w_i(1-u_i^2)^2x_i}{\sum w_i(1-u_i^2)^2 } $

where the sums run over data points with |u|<1 and u is calculated as

$ u_i = \frac{x_i-m}{k*\textrm{mad}} $

As the estimate \a m also appears on right-hand side, the estimate
is calculated in an iterative manner.

\see regression::TukeyBiweight
\see mad

\since New in yat 0.8

Constructor & Destructor Documentation

theplu::yat::statistics::TukeyBiweightEstimator::TukeyBiweightEstimator ( double  cutoff = 4.685,
bool  sorted = false 
)
inlineexplicit

Constructor.

Parameters:
cutoffdefines how close to the center (estimate) a data point needs to be (in terms of MADs) to influence the estimate.
sortedif true object pressumes input is a sorted range; otherwise object works on a copy of the range which will be sorted.

Member Function Documentation

template<typename RandomAccessIterator >
double theplu::yat::statistics::TukeyBiweightEstimator::operator() ( RandomAccessIterator  first,
RandomAccessIterator  last 
) const
Returns:
Tukey's Biweight Estimate

The documentation for this class was generated from the following file:

Generated on Mon Nov 11 2013 09:41:45 for yat by  doxygen 1.8.1