1 #ifndef _theplu_yat_normalizer_gauss_
2 #define _theplu_yat_normalizer_gauss_
27 #include "yat/utility/concept_check.h"
28 #include "yat/utility/iterator_traits.h"
30 #include <boost/concept_check.hpp>
32 #include <gsl/gsl_cdf.h>
38 namespace normalizer {
65 template<
typename RandomAccessIter1,
typename RandomAccessIter2>
66 void operator()(RandomAccessIter1 first, RandomAccessIter1 last,
67 RandomAccessIter2 result)
const
70 spearman(first, last, result);
71 RandomAccessIter2 end = result + std::distance(first, last);
73 while (result != end) {
74 trait.
data(result) = gsl_cdf_ugaussian_Pinv(trait.
data(result));
data_reference data(Iter iter) const
Definition: iterator_traits.h:440
Definition: iterator_traits.h:412
Replace elements with normalized rank.
Definition: Spearman.h:57
Gaussian Normalizer.
Definition: Gauss.h:52
void operator()(RandomAccessIter1 first, RandomAccessIter1 last, RandomAccessIter2 result) const
Definition: Gauss.h:66