Image Component Library (ICL)
Namespaces | Functions
MathFunctions.h File Reference
#include <ICLUtils/CompatMacros.h>
#include <ICLUtils/Random.h>
#include <vector>
#include <algorithm>
#include <cmath>
#include <ipps.h>

Go to the source code of this file.

Namespaces

 icl
 undocument this line if you encounter any issues!
 
 icl::math
 

Functions

template<class ForwardIterator >
float icl::math::euclidian (ForwardIterator v1Begin, ForwardIterator v1End, ForwardIterator v2Begin)
 Calculate the euclidian distance of two vectors v1 and v2. More...
 
template<class T >
float icl::math::euclidian (const std::vector< T > &a, const std::vector< T > &b)
 Calculate the euclidian distance of points a and b. More...
 
template<class ForwardIterator >
double icl::math::mean (ForwardIterator begin, ForwardIterator end)
 computes the mean value of a data range More...
 
template<class ForwardIterator >
double icl::math::variance (ForwardIterator begin, ForwardIterator end, double mean, bool empiricMean=true)
 Compute the variance of a given data range with given mean value. More...
 
template<class ForwardIterator >
double icl::math::variance (ForwardIterator begin, ForwardIterator end)
 Compute the variance of a given data range. More...
 
template<class ForwardIterator >
double icl::math::stdDeviation (ForwardIterator begin, ForwardIterator end, double mean, bool empiricMean=true)
 Compute std-deviation of a data set with given mean (calls sqrt(variance(..)) More...
 
template<class ForwardIterator >
double icl::math::stdDeviation (ForwardIterator begin, ForwardIterator end)
 Compute std-deviation of a data set. More...
 
template<class ForwardIterator >
std::pair< double, double > icl::math::meanAndStdDev (ForwardIterator begin, ForwardIterator end)
 Calculates mean and standard deviation of given data range simultanously. More...