Skip to content

Commit 5b3f5d5

Browse files
Planeshifterkgryte
andauthored
chore: apply suggestions from code review
Co-authored-by: Athan <[email protected]> Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 6407b9c commit 5b3f5d5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/stats/base/dists/binomial/variance/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Returns the [variance][variance] of a [binomial][binomial-distribution] distribu
171171

172172
```c
173173
double out = stdlib_base_dists_binomial_variance( 100, 0.1 );
174-
// returns 0.9
174+
// returns 9.0
175175
```
176176

177177
The function accepts the following arguments:

lib/node_modules/@stdlib/stats/base/dists/binomial/variance/manifest.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
"dependencies": [
4141
"@stdlib/math/base/napi/binary",
4242
"@stdlib/math/base/assert/is-nan",
43-
"@stdlib/math/base/assert/is-nonnegative-integer",
44-
"@stdlib/math/base/special/ceil"
43+
"@stdlib/math/base/assert/is-nonnegative-integer"
4544
]
4645
},
4746
{

lib/node_modules/@stdlib/stats/base/dists/binomial/variance/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "stdlib/math/base/assert/is_nan.h"
2121
#include "stdlib/math/base/assert/is_nonnegative_integer.h"
2222
#include <stdint.h>
23+
2324
/**
2425
* Returns the variance of a binomial distribution.
2526
*
@@ -29,7 +30,7 @@
2930
*
3031
* @example
3132
* double y = stdlib_base_dists_binomial_variance( 100, 0.1 );
32-
* // returns 0.9
33+
* // returns 9.0
3334
*/
3435
double stdlib_base_dists_binomial_variance( const int32_t n, const double p ) {
3536
if (

0 commit comments

Comments
 (0)