Classes | |
struct | Limit |
struct | LimitIO |
class | Line |
struct | unwrap |
Functions | |
template<class type , typename precission > | |
type | coerce (type value, const Limit< precission > &limit) |
template<class type > | |
type | coerce (type value, double min, double max) |
template<class Iterator > | |
double | mean (const Iterator &first, const Iterator &last) |
template<class Vector > | |
double | mean (const Vector &vec) |
template<class Vector > | |
double | std2 (const Vector &vec) |
double | wrapDeg (double angle) |
double | wrapRad (double angle) |
type labust::math::coerce | ( | type | value, |
const Limit< precission > & | limit | ||
) | [inline] |
The function coerces a value into the [min,max] range based on the labust::math::Limit parameter.
value | The arbitrary value. |
limit | The range limit of the coerced value. |
Definition at line 80 of file NumberManipulation.hpp.
type labust::math::coerce | ( | type | value, |
double | min, | ||
double | max | ||
) | [inline] |
The function coerces a value into the [min,max] range.
value | The arbitrary value. |
min | The coercion range minimum. |
max | The coercion range maximum. |
Definition at line 95 of file NumberManipulation.hpp.
double labust::math::mean | ( | const Iterator & | first, |
const Iterator & | last | ||
) | [inline] |
The function calculates the vector mean over a range.
first | Iterator to the first element. |
last | Iterator to the last element. |
Template | used for polymorphism. |
Definition at line 110 of file NumberManipulation.hpp.
double labust::math::mean | ( | const Vector & | vec | ) | [inline] |
The function calculates the vector mean over a range.
vec | Data vector. |
Template | used for polymorphism. |
Definition at line 125 of file NumberManipulation.hpp.
double labust::math::std2 | ( | const Vector & | vec | ) | [inline] |
The function calculates the vector deviation over a range.
vec | Data vector. |
Template | used for polymorphism. |
Definition at line 140 of file NumberManipulation.hpp.
double labust::math::wrapDeg | ( | double | angle | ) | [inline] |
The function wraps any value into the [-180,180> range.
angle | The arbitrary value. |
Definition at line 65 of file NumberManipulation.hpp.
double labust::math::wrapRad | ( | double | angle | ) | [inline] |
The function wraps any value into the [-pi,pi> range.
angle | The arbitrary value. |
Definition at line 52 of file NumberManipulation.hpp.