Basic mathematics functions. More...
Go to the source code of this file.
Enumerations | |
enum | UXMatchMethod { UXCorrRaw, UXCorrBiased, UXCorrUnbiased, UXCorrCoeff, UXCovRaw, UXCovBiased, UXCovUnbiased, UXCovCoeff } |
Functions | |
std::vector< float > | uHamming (unsigned int L) |
template<class T > | |
bool | uIsFinite (const T &value) |
template<typename T > | |
bool | uIsInBounds (const T &value, const T &low, const T &high) |
template<class T > | |
bool | uIsNan (const T &value) |
template<class T > | |
std::list< unsigned int > | uLocalMaxima (const T *v, unsigned int size) |
template<class T > | |
std::list< unsigned int > | uLocalMaxima (const std::vector< T > &v) |
template<class T > | |
T | uMax (const T *v, unsigned int size, unsigned int &index) |
template<class T > | |
T | uMax (const std::vector< T > &v, unsigned int &index) |
template<class T > | |
T | uMax (const T *v, unsigned int size) |
template<class T > | |
T | uMax (const std::vector< T > &v) |
template<class T > | |
T | uMean (const T *v, unsigned int size) |
template<class T > | |
T | uMean (const std::list< T > &list) |
template<class T > | |
T | uMean (const std::vector< T > &v) |
template<class T > | |
T | uMeanSquaredError (const T *x, unsigned int sizeX, const T *y, unsigned int sizeY) |
template<class T > | |
T | uMeanSquaredError (const std::vector< T > &x, const std::vector< T > &y) |
template<class T > | |
T | uMin (const T *v, unsigned int size, unsigned int &index) |
template<class T > | |
T | uMin (const std::vector< T > &v, unsigned int &index) |
template<class T > | |
T | uMin (const T *v, unsigned int size) |
template<class T > | |
T | uMin (const std::vector< T > &v) |
template<class T > | |
void | uMinMax (const T *v, unsigned int size, T &min, T &max, unsigned int &indexMin, unsigned int &indexMax) |
template<class T > | |
void | uMinMax (const std::vector< T > &v, T &min, T &max, unsigned int &indexMin, unsigned int &indexMax) |
template<class T > | |
void | uMinMax (const T *v, unsigned int size, T &min, T &max) |
template<class T > | |
void | uMinMax (const std::vector< T > &v, T &min, T &max) |
template<class T > | |
T | uNorm (const std::vector< T > &v) |
template<class T > | |
T | uNorm (const T &x1, const T &x2) |
template<class T > | |
T | uNorm (const T &x1, const T &x2, const T &x3) |
template<class T > | |
std::vector< T > | uNormalize (const std::vector< T > &v) |
template<class T > | |
T | uNormSquared (const std::vector< T > &v) |
template<class T > | |
T | uNormSquared (const T &x1, const T &x2) |
template<class T > | |
T | uNormSquared (const T &x1, const T &x2, const T &x3) |
template<class T > | |
int | uSign (const T &v) |
template<class T > | |
T | uSum (const std::list< T > &list) |
template<class T > | |
T | uSum (const T *v, unsigned int size) |
template<class T > | |
T | uSum (const std::vector< T > &v) |
template<class T > | |
T | uSumSquared (const T *v, unsigned int size, T subtract=T()) |
template<class T > | |
T | uSumSquared (const std::vector< T > &v, T subtract=T()) |
template<class T > | |
T | uVariance (const T *v, unsigned int size, T meanV) |
template<class T > | |
T | uVariance (const std::list< T > &list, const T &m) |
template<class T > | |
T | uVariance (const T *v, unsigned int size) |
template<class T > | |
T | uVariance (const std::vector< T > &v, const T &m) |
template<class T > | |
std::vector< T > | uXMatch (const T *vA, const T *vB, unsigned int sizeA, unsigned int sizeB, UXMatchMethod method) |
template<class T > | |
std::vector< T > | uXMatch (const std::vector< T > &vA, const std::vector< T > &vB, UXMatchMethod method) |
template<class T > | |
T | uXMatch (const T *vA, const T *vB, unsigned int sizeA, unsigned int sizeB, unsigned int index, UXMatchMethod method) |
template<class T > | |
T | uXMatch (const std::vector< T > &vA, const std::vector< T > &vB, unsigned int index, UXMatchMethod method) |
Basic mathematics functions.
Definition in file UMath.h.
enum UXMatchMethod |
std::vector<float> uHamming | ( | unsigned int | L | ) | [inline] |
bool uIsFinite | ( | const T & | value | ) | [inline] |
bool uIsInBounds | ( | const T & | value, |
const T & | low, | ||
const T & | high | ||
) |
bool uIsNan | ( | const T & | value | ) | [inline] |
std::list<unsigned int> uLocalMaxima | ( | const T * | v, |
unsigned int | size | ||
) | [inline] |
std::list<unsigned int> uLocalMaxima | ( | const std::vector< T > & | v | ) | [inline] |
T uMax | ( | const T * | v, |
unsigned int | size, | ||
unsigned int & | index | ||
) | [inline] |
T uMax | ( | const std::vector< T > & | v, |
unsigned int & | index | ||
) | [inline] |
T uMax | ( | const T * | v, |
unsigned int | size | ||
) | [inline] |
T uMax | ( | const std::vector< T > & | v | ) | [inline] |
T uMean | ( | const T * | v, |
unsigned int | size | ||
) | [inline] |
T uMean | ( | const std::list< T > & | list | ) | [inline] |
T uMean | ( | const std::vector< T > & | v | ) | [inline] |
T uMeanSquaredError | ( | const T * | x, |
unsigned int | sizeX, | ||
const T * | y, | ||
unsigned int | sizeY | ||
) | [inline] |
Compute mean squared error between two arrays: mean((x-y).^2).
x | the first array |
sizeX | the size of the array x |
y | the second array |
sizeY | the size of the array y (must be same size as x) |
T uMeanSquaredError | ( | const std::vector< T > & | x, |
const std::vector< T > & | y | ||
) | [inline] |
T uMin | ( | const T * | v, |
unsigned int | size, | ||
unsigned int & | index | ||
) | [inline] |
T uMin | ( | const std::vector< T > & | v, |
unsigned int & | index | ||
) | [inline] |
T uMin | ( | const T * | v, |
unsigned int | size | ||
) | [inline] |
T uMin | ( | const std::vector< T > & | v | ) | [inline] |
void uMinMax | ( | const T * | v, |
unsigned int | size, | ||
T & | min, | ||
T & | max, | ||
unsigned int & | indexMin, | ||
unsigned int & | indexMax | ||
) | [inline] |
void uMinMax | ( | const std::vector< T > & | v, |
T & | min, | ||
T & | max, | ||
unsigned int & | indexMin, | ||
unsigned int & | indexMax | ||
) | [inline] |
void uMinMax | ( | const T * | v, |
unsigned int | size, | ||
T & | min, | ||
T & | max | ||
) | [inline] |
void uMinMax | ( | const std::vector< T > & | v, |
T & | min, | ||
T & | max | ||
) | [inline] |
T uNorm | ( | const std::vector< T > & | v | ) | [inline] |
T uNorm | ( | const T & | x1, |
const T & | x2 | ||
) | [inline] |
T uNorm | ( | const T & | x1, |
const T & | x2, | ||
const T & | x3 | ||
) | [inline] |
std::vector<T> uNormalize | ( | const std::vector< T > & | v | ) | [inline] |
T uNormSquared | ( | const std::vector< T > & | v | ) | [inline] |
T uNormSquared | ( | const T & | x1, |
const T & | x2 | ||
) | [inline] |
T uNormSquared | ( | const T & | x1, |
const T & | x2, | ||
const T & | x3 | ||
) | [inline] |
int uSign | ( | const T & | v | ) | [inline] |
T uSum | ( | const std::list< T > & | list | ) | [inline] |
T uSum | ( | const T * | v, |
unsigned int | size | ||
) | [inline] |
T uSum | ( | const std::vector< T > & | v | ) | [inline] |
T uSumSquared | ( | const T * | v, |
unsigned int | size, | ||
T | subtract = T() |
||
) | [inline] |
T uSumSquared | ( | const std::vector< T > & | v, |
T | subtract = T() |
||
) | [inline] |
T uVariance | ( | const T * | v, |
unsigned int | size, | ||
T | meanV | ||
) | [inline] |
T uVariance | ( | const std::list< T > & | list, |
const T & | m | ||
) | [inline] |
T uVariance | ( | const T * | v, |
unsigned int | size | ||
) | [inline] |
T uVariance | ( | const std::vector< T > & | v, |
const T & | m | ||
) | [inline] |
std::vector<T> uXMatch | ( | const T * | vA, |
const T * | vB, | ||
unsigned int | sizeA, | ||
unsigned int | sizeB, | ||
UXMatchMethod | method | ||
) | [inline] |
Do a full cross-correlation or cross-covariance between 2 arrays.
vA | the first array |
vB | the second array |
sizeA | the size of the first array |
sizeB | the size of the second array |
method | see UXMatchMethod |
std::vector<T> uXMatch | ( | const std::vector< T > & | vA, |
const std::vector< T > & | vB, | ||
UXMatchMethod | method | ||
) | [inline] |
T uXMatch | ( | const T * | vA, |
const T * | vB, | ||
unsigned int | sizeA, | ||
unsigned int | sizeB, | ||
unsigned int | index, | ||
UXMatchMethod | method | ||
) | [inline] |
Do a cross correlation between 2 arrays at a specified index.
vA | the first array |
vB | the second array |
sizeA | the size of the first array |
sizeB | the size of the second array |
index | the index to correlate |
method | see UXMatchMethod |
T uXMatch | ( | const std::vector< T > & | vA, |
const std::vector< T > & | vB, | ||
unsigned int | index, | ||
UXMatchMethod | method | ||
) | [inline] |
Do a cross correlation between 2 arrays at a specified index.
vA | the first array |
vB | the second array |
sizeA | the size of the first array |
sizeB | the size of the second array |
index | the index to correlate |
method | see UXMatchMethod |