15 #ifndef niftkMathsUtils_h
16 #define niftkMathsUtils_h
39 ( std::vector < std::pair < double, double> > inputValues,
40 std::pair <unsigned int , unsigned int > * indexes = NULL );
double StdDev(const std::vector< double > &input)
To return the sample standard deviation of a vector.
Definition: niftkMathsUtils.cxx:100
bool IsCloseToZero(const double &value, const double &tolerance)
Returns true if fabs(value) is less than a small tolerance, which defaults to 0.000001.
Definition: niftkMathsUtils.cxx:24
GLenum GLenum GLenum input
Definition: glew.h:12016
double SafeSQRT(double value)
Returns 0.0 of value < 0 or sqrt(value) if value >= 0.
Definition: niftkMathsUtils.cxx:129
double RMS(const std::vector< double > &input)
Assuming input contains squared errors, will sum them, divide by N, and take sqrt for an RMS measure...
Definition: niftkMathsUtils.cxx:79
double ModifiedSignum(double value)
Returns -1.0 if value < 0 or 1.0 if value >= 0.
Definition: niftkMathsUtils.cxx:118
GLsizei const GLfloat * value
Definition: glew.h:1833
double Mean(const std::vector< double > &input)
To return the sample mean of a vector.
Definition: niftkMathsUtils.cxx:87
std::pair< double, double > FindMinimumValues(std::vector< std::pair< double, double > > inputValues, std::pair< unsigned int, unsigned int > *indexes)
Takes a vector of pairs and finds the minimum value in each dimension. Returns the minimum values...
Definition: niftkMathsUtils.cxx:38
Definition: niftkExceptionObject.h:21