INGOR
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ytMath Class Reference

Mathematical routines. More...

#include <ytMath.h>

Public Member Functions

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.
 
#define ytMath_PI   3.14159265358979323846264
 Constant PI.
 
#define ytMath_min(x, y)   (x < y ? x : y)
 min function macro
 
#define ytMath_max(x, y)   (x > y ? x : y)
 max function macro
 

Detailed Description

Mathematical routines.

Member Function Documentation

◆ ytMath_dnorm()

double ytMath_dnorm ( double  x,
double  m,
double  v 
)

Density function of normal distribution.

Parameters
xvalue to calculate.
mmean parameter.
vvariance 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
xvalue to calculate.
mmean parameter.
vvariance 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
sizelength (size) of v
vvector (array) to search
Returns
the maximum value in the vector.

The documentation for this class was generated from the following files: