yat
0.14.5pre
|
Replace elements with normalized rank. More...
#include <yat/normalizer/Spearman.h>
Public Member Functions | |
Spearman (void) | |
default constructor | |
template<typename RandomAccessIter1 , typename RandomAccessIter2 > | |
void | operator() (RandomAccessIter1 first, RandomAccessIter1 last, RandomAccessIter2 result) const |
Replace elements with normalized rank.
Each element x is replaced by where for , for , and for .
|
inline |
It is possible to centralize a range "in place"; it is permissible for the iterators first and result to be the same.
Type Requirements:
RandomAccessIter1
is Random Access Traversal IteratorRandomAccessIter1
is Data IteratorRandomAccessIter2
is Writable IteratorRandomAccessIter2
is Random Access Traversal IteratorRandomAccessIter2
is Data Iterator