|
template<typename T1 , typename T2 > |
bool | ccgl::utils_math::FloatEqual (T1 v1, T2 v2) |
| Whether v1 is equal to v2 更多...
|
|
float | ccgl::utils_math::Expo (float xx, float upper=20.f, float lower=-20.f) |
| Check the argument against upper and lower boundary values prior to doing Exponential function
|
|
float | ccgl::utils_math::Power (float a, float n) |
| deal with positive and negative float numbers
|
|
template<typename T > |
T | ccgl::utils_math::MaxInArray (const T *a, int n) |
| Get maximum value in a numeric array with size n. 更多...
|
|
template<typename T > |
T | ccgl::utils_math::MinInArray (const T *a, int n) |
| Get minimum value in a numeric array with size n. 更多...
|
|
template<typename T > |
T | ccgl::utils_math::Sum (int row, const T *data) |
| Sum of a numeric array Get sum value of a double array with size row. 更多...
|
|
template<typename T > |
T | ccgl::utils_math::Sum (int row, int *&idx, const T *data) |
| Sum of a numeric array Get sum value of a double array with size row and real index idx. 更多...
|
|
template<typename T > |
void | ccgl::utils_math::BasicStatistics (const T *values, int num, double **derivedvalues, T exclude=static_cast< T >(NODATA_VALUE)) |
| calculate basic statistics at one time_funcs 更多...
|
|
template<typename T > |
void | ccgl::utils_math::BasicStatistics (const T *const *values, int num, int lyrs, double ***derivedvalues, T exclude=static_cast< T >(NODATA_VALUE)) |
| calculate basic statistics at one time_funcs for 2D raster data 更多...
|
|
float | ccgl::utils_math::ApprSqrt (float z) |
| approximate sqrt 更多...
|
|
float | ccgl::utils_math::ApprLn (float z) |
| Approximates the natural logarithm, (where the base is 'e'=2.71828)
|
|
float | ccgl::utils_math::pow_lookup (const float exp, const float log_base) |
| lookup for pow(a, b) function 更多...
|
|
float | ccgl::utils_math::ApprPow (float a, float b) |
| Approximates pow(a, b) based on the work of Harrison Ainsworth. 更多...
|
|
Useful math equations in CCGL.
- 作者
- Liangjun Zhu, zlj(a)lreis.ac.cn
- 版本
- 1.1