Math namespace. More...
Classes | |
class | BilinearInterpolation |
Provides access to bilinearly interpolated values (and derivatives) from discrete data points. Values beyond the given range of data points are implicitly taken as zero. More... | |
class | LinearInterpolation |
Provides access to linearly interpolated values (and derivatives) from discrete data points. Values beyond the given range of data points are implicitly taken as zero. More... | |
class | AsymmetricStatistics |
Internal class for asymmetric distributions. More... | |
class | AveragePosition |
Maintain an average position by summing up positions with weights. More... | |
class | BasicStatistics |
Calculates some basic statistical parameters of a distribution: sum, mean, variance, and provides the normal approximation. More... | |
class | GammaDistributionFitter |
Implements a fitter for the Gamma distribution. More... | |
class | GaussFitter |
Implements a fitter for gaussian functions. More... | |
class | GumbelDistributionFitter |
Implements a fitter for the Gumbel distribution. More... | |
class | Histogram |
Representation of a histogram. More... | |
class | LinearRegression |
This class offers functions to perform least-squares fits to a straight line model, ![]() | |
class | PosteriorErrorProbabilityModel |
Implements a mixture model of the inverse gumbel and the gauss distribution or a gaussian mixture. More... | |
class | ROCCurve |
ROCCurves show the tradeoff in sensitivity and specitivity for binary classifiers using different cutoff values. More... | |
Functions | |
static double | ceilDecimal (double x, int decPow) |
rounds x up to the next decimal power 10 ^ decPow More... | |
static double | roundDecimal (double x, int decPow) |
rounds x to the next decimal power 10 ^ decPow More... | |
static double | intervalTransformation (double x, double left1, double right1, double left2, double right2) |
transforms point x of interval [left1,right1] into interval [left2,right2] More... | |
double | linear2log (double x) |
Transforms a number from linear to log10 scale. Avoids negative logarithms by adding 1. More... | |
double | log2linear (double x) |
Transforms a number from log10 to to linear scale. Subtracts the 1 added by linear2log(double) More... | |
bool | isOdd (UInt x) |
Returns true if the given interger is odd. More... | |
template<typename T > | |
T | round (T x) |
Rounds the value. More... | |
static bool | approximatelyEqual (DoubleReal a, DoubleReal b, DoubleReal tol) |
Returns if a is approximately equal b , allowing a tolerance of tol . More... | |
template<typename T > | |
T | gcd (T a, T b) |
Returns the greatest common divisor (gcd) of two numbers by applying the Euclidean algorithm. More... | |
template<typename T > | |
T | gcd (T a, T b, T &u1, T &u2) |
Returns the greatest common divisor by applying the extended Euclidean algorithm (Knuth TAoCP vol. 2, p342). Calculates u1, u2 and u3 (which is returned) so that a * u1 + b * u2 = u3 = gcd(a, b, u1, u2) More... | |
template<typename ValueType , typename BinSizeType > | |
std::ostream & | operator<< (std::ostream &os, const Histogram< ValueType, BinSizeType > &hist) |
Print the contents to a stream. More... | |
template<typename IteratorType > | |
static DoubleReal | sum (IteratorType begin, IteratorType end) |
Calculates the sum of a range of values. More... | |
template<typename IteratorType > | |
static DoubleReal | mean (IteratorType begin, IteratorType end) |
Calculates the mean of a range of values. More... | |
template<typename IteratorType > | |
static DoubleReal | median (IteratorType begin, IteratorType end, bool sorted=FALSE) |
Calculates the median of a range of values. More... | |
template<typename IteratorType > | |
static DoubleReal | quantile (IteratorType begin, IteratorType end, UInt quantile, bool sorted=FALSE) |
Calculates the quantile of a range of values. More... | |
template<typename IteratorType1 , typename IteratorType2 > | |
static DoubleReal | meanSquareError (IteratorType1 begin_a, IteratorType1 end_a, IteratorType2 begin_b, IteratorType2 end_b) |
Calculates the mean square error for the values in [begin_a, end_a) and [begin_b, end_b) More... | |
template<typename IteratorType1 , typename IteratorType2 > | |
static DoubleReal | classificationRate (IteratorType1 begin_a, IteratorType1 end_a, IteratorType2 begin_b, IteratorType2 end_b) |
Calculates the classification rate for the values in [begin_a, end_a) and [begin_b, end_b) More... | |
template<typename IteratorType1 , typename IteratorType2 > | |
static DoubleReal | matthewsCorrelationCoefficient (IteratorType1 begin_a, IteratorType1 end_a, IteratorType2 begin_b, IteratorType2 end_b) |
Calculates the Matthews correlation coefficient for the values in [begin_a, end_a) and [begin_b, end_b) More... | |
template<typename IteratorType1 , typename IteratorType2 > | |
static DoubleReal | pearsonCorrelationCoefficient (IteratorType1 begin_a, IteratorType1 end_a, IteratorType2 begin_b, IteratorType2 end_b) |
Calculates the Pearson correlation coefficient for the values in [begin_a, end_a) and [begin_b, end_b) More... | |
template<typename Value > | |
static void | computeRank (std::vector< Value > &w) |
Replaces the elements in vector w by their ranks. More... | |
template<typename IteratorType1 , typename IteratorType2 > | |
static DoubleReal | rankCorrelationCoefficient (IteratorType1 begin_a, IteratorType1 end_a, IteratorType2 begin_b, IteratorType2 end_b) |
calculates the rank correlation coefficient for the values in [begin_a, end_a) and [begin_b, end_b) More... | |
Math namespace.
Contains mathematical auxiliary functions.
|
static |
Replaces the elements in vector w
by their ranks.
Referenced by rankCorrelationCoefficient().
std::ostream& OpenMS::Math::operator<< | ( | std::ostream & | os, |
const Histogram< ValueType, BinSizeType > & | hist | ||
) |
Print the contents to a stream.
OpenMS / TOPP release 1.11.1 | Documentation generated on Thu Nov 14 2013 11:19:38 using doxygen 1.8.5 |