Skip to content

Commit 505023b

Browse files
Aadish JainAadish Jain
authored andcommitted
feat(negative-binomial-variance): minor fixes
1 parent da1efe2 commit 505023b

File tree

2 files changed

+1
-2
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/negative-binomial/variance

2 files changed

+1
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ for ( i = 0; i < 10; i++ ) {
168168
Returns the variance of a negative binomial distribution with parameters `r` (number of successes until experiment is stopped) and `p` (success probability).
169169

170170
```c
171-
double v = stdlib_base_dists_negative_binomial_variance( 100, 0.2 );
171+
double v = stdlib_base_dists_negative_binomial_variance( 100.0, 0.2 );
172172
// returns ~2000.0
173173
```
174174

lib/node_modules/@stdlib/stats/base/dists/negative-binomial/variance/include/stdlib/stats/base/dists/negative-binomial/variance.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#ifndef STDLIB_STATS_BASE_DISTS_NEGATIVE_BINOMIAL_VARIANCE_H
2020
#define STDLIB_STATS_BASE_DISTS_NEGATIVE_BINOMIAL_VARIANCE_H
2121

22-
#include <stdint.h>
2322

2423
/*
2524
* If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler.

0 commit comments

Comments
 (0)