Skip to content

Commit 1a3ab12

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent ea0b7d2 commit 1a3ab12

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ for ( i = 0; i < 10; i++ ) {
150150

151151
#### stdlib_base_dists_geometric_variance( p )
152152

153-
Returns the variance of a Poisson distribution.
153+
Returns the [variance][variance] of a [geometric][geometric-distribution] distribution with success probability `p`.
154154

155155
```c
156156
double out = stdlib_base_dists_geometric_variance( 9.0 );

lib/node_modules/@stdlib/stats/base/dists/geometric/variance/benchmark/c/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static double benchmark( void ) {
100100
int i;
101101

102102
for ( i = 0; i < 100; i++ ) {
103-
p[ i ] = random_uniform( 0.0, 1.0 ) + STDLIB_CONSTANT_FLOAT64_EPS;
103+
p[ i ] = random_uniform( STDLIB_CONSTANT_FLOAT64_EPS, 1.0 - STDLIB_CONSTANT_FLOAT64_EPS );
104104
}
105105

106106
t = tic();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @return variance
2727
*
2828
* @example
29-
* double y = stdlib_base_geometric_variance( 0.1 );
29+
* double y = stdlib_base_dists_geometric_variance( 0.1 );
3030
* // returns ~90.0
3131
*/
3232
double stdlib_base_dists_geometric_variance( const double p ) {

0 commit comments

Comments
 (0)