INGOR
Loading...
Searching...
No Matches
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.
 

Related Symbols

(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
 

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.

Friends And Related Symbol Documentation

◆ ytMath_max

#define ytMath_max ( x,
y )
related
Value:
(x > y ? x : y)

max function macro

◆ ytMath_min

#define ytMath_min ( x,
y )
related
Value:
(x < y ? x : y)

min function macro


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