#include <cmath>
#include <cstddef>
#include "f77-fcn.h"
#include "lo-error.h"
#include "lo-ieee.h"
#include "randmtzig.h"
#include "randpoisson.h"
Go to the source code of this file.
|
#define | C0 9.18938533204672742e-01 |
|
#define | C1 8.33333333333333333e-02 |
|
#define | C3 -2.77777777777777778e-03 |
|
#define | C5 7.93650793650793651e-04 |
|
#define | C7 -5.95238095238095238e-04 |
|
#define | TABLESIZE 46 |
|
|
static double | f (double k, double l_nu, double c_pm) |
|
static double | flogfak (double k) |
|
template<typename T > |
static void | poisson_cdf_lookup (double lambda, T *p, std::size_t n) |
|
template<typename T > |
static void | poisson_rejection (double lambda, T *p, std::size_t n) |
|
static double | pprsc (double my) |
|
template<typename T > |
T | rand_poisson (T L_arg) |
|
template<typename T > |
void | rand_poisson (T L_arg, octave_idx_type n, T *p) |
|
template OCTAVE_API double | rand_poisson< double > (double) |
|
template void | rand_poisson< double > (double, octave_idx_type, double *) |
|
template OCTAVE_API float | rand_poisson< float > (float) |
|
template void | rand_poisson< float > (float, octave_idx_type, float *) |
|
static double | xlgamma (double x) |
|
◆ C0
#define C0 9.18938533204672742e-01 |
◆ C1
#define C1 8.33333333333333333e-02 |
◆ C3
#define C3 -2.77777777777777778e-03 |
◆ C5
#define C5 7.93650793650793651e-04 |
◆ C7
#define C7 -5.95238095238095238e-04 |
◆ TABLESIZE
◆ f()
static double f |
( |
double |
k, |
|
|
double |
l_nu, |
|
|
double |
c_pm |
|
) |
| |
|
static |
◆ flogfak()
static double flogfak |
( |
double |
k | ) |
|
|
static |
◆ poisson_cdf_lookup()
template<typename T >
static void poisson_cdf_lookup |
( |
double |
lambda, |
|
|
T * |
p, |
|
|
std::size_t |
n |
|
) |
| |
|
static |
◆ poisson_rejection()
template<typename T >
static void poisson_rejection |
( |
double |
lambda, |
|
|
T * |
p, |
|
|
std::size_t |
n |
|
) |
| |
|
static |
◆ pprsc()
static double pprsc |
( |
double |
my | ) |
|
|
static |
◆ rand_poisson() [1/2]
template<typename T >
T rand_poisson |
( |
T |
L_arg | ) |
|
◆ rand_poisson() [2/2]
◆ rand_poisson< double >() [1/2]
◆ rand_poisson< double >() [2/2]
◆ rand_poisson< float >() [1/2]
◆ rand_poisson< float >() [2/2]
◆ xlgamma()
static double xlgamma |
( |
double |
x | ) |
|
|
static |