JWS C Library
C language utility library
|
Multivariate probability mass functions. More...
#include <jwsc/config.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <inttypes.h>
#include "jwsc/vector/vector.h"
#include "jwsc/vector/vector_math.h"
#include "jwsc/matrix/matrix.h"
#include "jwsc/matrix/matrix_math.h"
#include "jwsc/prob/pmf.h"
#include "jwsc/prob/mv_pmf.h"
Go to the source code of this file.
Functions | |
mv_bernoulli_pmf | |
Computes the multivariate Bernoulli pmf at a point. | |
void | mv_bernoulli_pmf_f (float *p_out, const Vector_f *mu, const Vector_u32 *x) |
Computes the single precision multivariate Bernoulli pmf at a point. | |
void | mv_bernoulli_pmf_d (double *p_out, const Vector_d *mu, const Vector_u32 *x) |
Computes the double precision multivariate Bernoulli pmf at a point. | |
sample_mv_bernoulli_pmf | |
Draws a random sample from the multivariate Bernoulli pmf. | |
void | sample_mv_bernoulli_pmf_f (Vector_u32 **x_out, const Vector_f *mu) |
Draws a single precision random sample from the multivariate Bernoulli pmf. | |
void | sample_mv_bernoulli_pmf_d (Vector_u32 **x_out, const Vector_d *mu) |
Draws a double precision random sample from the multivariate Bernoulli pmf. | |
set_sample_mv_bernoulli_pmf | |
Draws a set of random samples from the multivariate Bernoulli pmf. | |
void | set_sample_mv_bernoulli_pmf_f (Matrix_u32 **x_out, uint32_t N, const Vector_f *mu) |
Draws a set of single precision random samples from the multivariate Bernoulli pmf. | |
void | set_sample_mv_bernoulli_pmf_d (Matrix_u32 **x_out, uint32_t N, const Vector_d *mu) |
Draws a set of double precision random samples from the multivariate Bernoulli pmf. |
Multivariate probability mass functions.
Definition in file mv_pmf.c.
void mv_bernoulli_pmf_f | ( | float * | p_out, |
const Vector_f * | mu, | ||
const Vector_u32 * | x | ||
) |
void mv_bernoulli_pmf_d | ( | double * | p_out, |
const Vector_d * | mu, | ||
const Vector_u32 * | x | ||
) |
void sample_mv_bernoulli_pmf_f | ( | Vector_u32 ** | x_out, |
const Vector_f * | mu | ||
) |
Draws a single precision random sample from the multivariate Bernoulli pmf.
x_out | Result paramter. Contains the sample. |
mu | Probabilities of success of the Bernoulli. |
void sample_mv_bernoulli_pmf_d | ( | Vector_u32 ** | x_out, |
const Vector_d * | mu | ||
) |
Draws a double precision random sample from the multivariate Bernoulli pmf.
x_out | Result paramter. Contains the sample. |
mu | Probabilities of success of the Bernoulli. |
void set_sample_mv_bernoulli_pmf_f | ( | Matrix_u32 ** | x_out, |
uint32_t | N, | ||
const Vector_f * | mu | ||
) |
Draws a set of single precision random samples from the multivariate Bernoulli pmf.
x_out | Result paramter. Contains the sample. |
N | Number of samples in the set. |
mu | Probabilities of success of the Bernoulli. |
void set_sample_mv_bernoulli_pmf_d | ( | Matrix_u32 ** | x_out, |
uint32_t | N, | ||
const Vector_d * | mu | ||
) |
Draws a set of double precision random samples from the multivariate Bernoulli pmf.
x_out | Result paramter. Contains the sample. |
N | Number of samples in the set. |
mu | Probabilities of success of the Bernoulli. |