| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
#ifndef eslDIRICHLET_INCLUDED |
| 7 |
#define eslDIRICHLET_INCLUDED |
| 8 |
#include <esl_config.h> |
| 9 |
|
| 10 |
#include "esl_random.h" |
| 11 |
#include "esl_fileparser.h" |
| 12 |
|
| 13 |
extern double esl_dirichlet_logpdf (double *p, double *alpha, int K); |
| 14 |
extern double esl_dirichlet_logpdf_c(double *c, double *alpha, int K); |
| 15 |
|
| 16 |
|
| 17 |
extern int esl_dirichlet_DSample (ESL_RANDOMNESS *r, double *alpha, int K, double *p); |
| 18 |
extern int esl_dirichlet_FSample (ESL_RANDOMNESS *r, float *alpha, int K, float *p); |
| 19 |
extern int esl_dirichlet_DSampleUniform(ESL_RANDOMNESS *r, int K, double *p); |
| 20 |
extern int esl_dirichlet_FSampleUniform(ESL_RANDOMNESS *r, int K, float *p); |
| 21 |
extern int esl_dirichlet_SampleBeta (ESL_RANDOMNESS *r, double theta1, double theta2, double *ret_answer); |
| 22 |
|
| 23 |
#endif |