yat  0.12.3pre
Public Member Functions | List of all members
theplu::yat::normalizer::Zscore Class Reference

Zero mean and unity variance. More...

#include <yat/normalizer/Zscore.h>

Public Member Functions

template<class ForwardIter1 , class ForwardIter2 >
void operator() (ForwardIter1 first, ForwardIter1 last, ForwardIter2 result) const
 

Detailed Description

Zero mean and unity variance.

Shift and scale the values in a range as: $ y_i = \frac{x_i-m}{s} $ where m is the mean and s is the standard deviation. After normalization, the range will have zero mean and unity variance.

Since
New in yat 0.5

Member Function Documentation

template<class ForwardIter1 , class ForwardIter2 >
void theplu::yat::normalizer::Zscore::operator() ( ForwardIter1  first,
ForwardIter1  last,
ForwardIter2  result 
) const
inline

The element in range [result, result + (last-first)) is calculated as result[i] = (first[i] - m) / s where m and std are the mean and standard deviation, respectively, of the range [first, last).

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

See Also
std::transform

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

Generated on Mon Jun 1 2015 12:29:52 for yat by  doxygen 1.8.5