NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
A list of general maths functions. More...
Go to the source code of this file.
Namespaces | |
niftk | |
Functions | |
bool | niftk::IsCloseToZero (const double &value, const double &tolerance=0.000001) |
Returns true if fabs(value) is less than a small tolerance, which defaults to 0.000001. More... | |
std::pair< double, double > | niftk::FindMinimumValues (std::vector< std::pair< double, double > > inputValues, std::pair< unsigned int, unsigned int > *indexes=NULL) |
Takes a vector of pairs and finds the minimum value in each dimension. Returns the minimum values. Optionally returns the indexes of the minium values. More... | |
double | niftk::Mean (const std::vector< double > &input) |
To return the sample mean of a vector. More... | |
double | niftk::StdDev (const std::vector< double > &input) |
To return the sample standard deviation of a vector. More... | |
double | niftk::RMS (const std::vector< double > &input) |
Assuming input contains squared errors, will sum them, divide by N, and take sqrt for an RMS measure. More... | |
double | niftk::ModifiedSignum (double value) |
Returns -1.0 if value < 0 or 1.0 if value >= 0. More... | |
double | niftk::SafeSQRT (double value) |
Returns 0.0 of value < 0 or sqrt(value) if value >= 0. More... | |
A list of general maths functions.