Mathematical routines.
More...
#include <ytMath.h>
|
size_t | ytMath_maxvSize_t (size_t size, const size_t *v) |
| Returns the maximum value in the vector.
|
|
double | ytMath_dnorm (double x, double m, double v) |
| Density function of normal distribution.
|
|
double | ytMath_ldnorm (double x, double m, double v) |
| Log of density function of normal distribution.
|
|
|
(Note that these are not member symbols.)
|
#define | ytMath_PI 3.14159265358979323846264 |
| Constant PI.
|
|
#define | ytMath_min(x, y) |
| min function macro
|
|
#define | ytMath_max(x, y) |
| max function macro
|
|
◆ ytMath_dnorm()
double ytMath_dnorm |
( |
double | x, |
|
|
double | m, |
|
|
double | v ) |
Density function of normal distribution.
- Parameters
-
x | value to calculate. |
m | mean parameter. |
v | variance parameter. |
- Returns
- density or likelihood of normal distribution.
◆ ytMath_ldnorm()
double ytMath_ldnorm |
( |
double | x, |
|
|
double | m, |
|
|
double | v ) |
Log of density function of normal distribution.
- Parameters
-
x | value to calculate. |
m | mean parameter. |
v | variance parameter. |
- Returns
- density or likelihood of normal distribution.
◆ ytMath_maxvSize_t()
size_t ytMath_maxvSize_t |
( |
size_t | size, |
|
|
const size_t * | v ) |
Returns the maximum value in the vector.
- Parameters
-
size | length (size) of v |
v | vector (array) to search |
- Returns
- the maximum value in the vector.
◆ ytMath_max
#define ytMath_max |
( |
| x, |
|
|
| y ) |
|
related |
Value:
max function macro
◆ ytMath_min
#define ytMath_min |
( |
| x, |
|
|
| y ) |
|
related |
Value:
min function macro
The documentation for this class was generated from the following file: