JWS C Library
C language utility library
mv_pdf.h File Reference

Declarations for multivariate probability density functions. More...

#include <jwsc/config.h>
#include <stdlib.h>
#include <inttypes.h>
#include "jwsc/base/error.h"
#include "jwsc/vector/vector.h"
#include "jwsc/matrix/matrix.h"
Include dependency graph for mv_pdf.h:

Go to the source code of this file.

Functions

sample_standard_mv_gaussian_pdf

Draws a random sample from the standard multivariate Gaussian pdf.

void sample_standard_mv_gaussian_pdf_f (Vector_f **x_out, uint32_t D)
 Draws a single precision random sample from the standard multivariate Gaussian pdf.
void sample_standard_mv_gaussian_pdf_d (Vector_d **x_out, uint32_t D)
 Draws a double precision random sample from the standard multivariate Gaussian pdf.
set_sample_standard_mv_gaussian_pdf

Draws a set of random samples from the standard multivariate Gaussian pdf.

void set_sample_standard_mv_gaussian_pdf_f (Matrix_f **x_out, uint32_t N, uint32_t D)
 Draws a set of single precision random samples from the standard multivariate Gaussian pdf.
void set_sample_standard_mv_gaussian_pdf_d (Matrix_d **x_out, uint32_t N, uint32_t D)
 Draws a set of double precision random samples from the standard multivariate Gaussian pdf.

Detailed Description

Declarations for multivariate probability density functions.

Author:
Joseph Schlecht
License:
Creative Commons BY-NC-SA 3.0

Definition in file mv_pdf.h.


Function Documentation

void sample_standard_mv_gaussian_pdf_f ( Vector_f **  x_out,
uint32_t  D 
)

Draws a single precision random sample from the standard multivariate Gaussian pdf.

Parameters:
x_outResult parameter. Contains the D-dimensional sample.
DDimension of the variate to sample.
Returns:
A D-dimensional random sample from the standard multivariate Gaussian density.
Note:
Does not seed the rand() function. If this is desired, srand() must be called prior to calling this function.

Definition at line 602 of file mv_pdf.c.

void sample_standard_mv_gaussian_pdf_d ( Vector_d **  x_out,
uint32_t  D 
)

Draws a double precision random sample from the standard multivariate Gaussian pdf.

Parameters:
x_outResult parameter. Contains the D-dimensional sample.
DDimension of the variate to sample.
Returns:
A D-dimensional random sample from the standard multivariate Gaussian density.
Note:
Does not seed the rand() function. If this is desired, srand() must be called prior to calling this function.

Definition at line 646 of file mv_pdf.c.

void set_sample_standard_mv_gaussian_pdf_f ( Matrix_f **  x_out,
uint32_t  N,
uint32_t  D 
)

Draws a set of single precision random samples from the standard multivariate Gaussian pdf.

Parameters:
x_outResult parameter. Contains the set of D-dimensional samples.
NNumber of samples in the set.
DDimension of the variate to sample.
Returns:
A set of D-dimensional random samples from the standard multivariate Gaussian density.
Note:
Does not seed the rand() function. If this is desired, srand() must be called prior to calling this function.

Definition at line 701 of file mv_pdf.c.

void set_sample_standard_mv_gaussian_pdf_d ( Matrix_d **  x_out,
uint32_t  N,
uint32_t  D 
)

Draws a set of double precision random samples from the standard multivariate Gaussian pdf.

Parameters:
x_outResult parameter. Contains the set of D-dimensional samples.
NNumber of samples in the set.
DDimension of the variate to sample.
Returns:
A set of D-dimensional random samples from the standard multivariate Gaussian density.
Note:
Does not seed the rand() function. If this is desired, srand() must be called prior to calling this function.

Definition at line 750 of file mv_pdf.c.