diff options
| author | mattip <matti.picus@gmail.com> | 2019-11-30 09:01:59 +0200 |
|---|---|---|
| committer | mattip <matti.picus@gmail.com> | 2019-11-30 09:01:59 +0200 |
| commit | 2b791a5906a2243b4e0a3318bd460b2062416fb9 (patch) | |
| tree | a51a7facb6cc670bfda6d73e57843f611f4f578b /numpy/random/src | |
| parent | aeaee5e0ab11abc9221e8ba938a3ff010b87fe36 (diff) | |
| download | numpy-2b791a5906a2243b4e0a3318bd460b2062416fb9.tar.gz | |
API: revert changes to standard_t, cauchy
Diffstat (limited to 'numpy/random/src')
| -rw-r--r-- | numpy/random/src/distributions/distributions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/random/src/distributions/distributions.c b/numpy/random/src/distributions/distributions.c index 1b886aeab..0b46dc6d8 100644 --- a/numpy/random/src/distributions/distributions.c +++ b/numpy/random/src/distributions/distributions.c @@ -443,7 +443,7 @@ double random_f(bitgen_t *bitgen_state, double dfnum, double dfden) { (random_chisquare(bitgen_state, dfden) * dfnum)); } -double random_cauchy(bitgen_t *bitgen_state) { +double random_standard_cauchy(bitgen_t *bitgen_state) { return random_standard_normal(bitgen_state) / random_standard_normal(bitgen_state); } @@ -507,7 +507,7 @@ double random_rayleigh(bitgen_t *bitgen_state, double mode) { return mode * sqrt(-2.0 * log(1.0 - next_double(bitgen_state))); } -double random_student_t(bitgen_t *bitgen_state, double df) { +double random_standard_t(bitgen_t *bitgen_state, double df) { double num, denom; num = random_standard_normal(bitgen_state); |
