theplu::yat::normalizer::Spearman Class Reference

Replace elements with normalized rank. More...

#include <yat/normalizer/Spearman.h>

List of all members.

Public Member Functions

 Spearman (void)
 default constructor
template<typename ForwardIterator, typename RandomAccessIterator>
void operator() (ForwardIterator first, ForwardIterator last, RandomAccessIterator result) const


Detailed Description

Replace elements with normalized rank.

Each element x is replaced by $ \frac{\sum I(x_i-x) w_i}{\sum w_i} $ where $ I(x) = 1 $ for $ x>0 $, $I(x) = 0.5 $ for $ x=0 $, and $ I(x) = 0 $ for $ x<0 $.

Since:
New in yat 0.5

Member Function Documentation

template<typename ForwardIterator, typename RandomAccessIterator>
void theplu::yat::normalizer::Spearman::operator() ( ForwardIterator  first,
ForwardIterator  last,
RandomAccessIterator  result 
) const [inline]

It is possible to centralize a range "in place"; it is permissible for the iterators first and result to be the same.


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

Generated on Tue Jan 18 02:20:10 2011 for yat by  doxygen 1.5.5