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. 
 | 
|  | 
| #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 
 | 
|  | 
◆ 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. 
 
 
The documentation for this class was generated from the following files: