MCPcopy Create free account
hub / github.com/numpy/numpy / random_standard_t

Function random_standard_t

numpy/random/src/distributions/distributions.c:532–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532double random_standard_t(bitgen_t *bitgen_state, double df) {
533 double num, denom;
534
535 num = random_standard_normal(bitgen_state);
536 denom = random_standard_gamma(bitgen_state, df / 2);
537 return sqrt(df / 2) * num / sqrt(denom);
538}
539
540static RAND_INT_TYPE random_poisson_mult(bitgen_t *bitgen_state, double lam) {
541 RAND_INT_TYPE X;

Callers

nothing calls this directly

Calls 3

random_standard_normalFunction · 0.85
random_standard_gammaFunction · 0.85
sqrtFunction · 0.50

Tested by

no test coverage detected