File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
lib/node_modules/@stdlib/stats/base/dists/geometric/variance Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ for ( i = 0; i < 10; i++ ) {
150
150
151
151
#### stdlib_base_dists_geometric_variance( p )
152
152
153
- Returns the variance of a Poisson distribution.
153
+ Returns the [ variance] [ variance ] of a [ geometric ] [ geometric-distribution ] distribution with success probability ` p ` .
154
154
155
155
``` c
156
156
double out = stdlib_base_dists_geometric_variance( 9.0 );
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ static double benchmark( void ) {
100
100
int i ;
101
101
102
102
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 ) ;
104
104
}
105
105
106
106
t = tic ();
Original file line number Diff line number Diff line change 26
26
* @return variance
27
27
*
28
28
* @example
29
- * double y = stdlib_base_geometric_variance ( 0.1 );
29
+ * double y = stdlib_base_dists_geometric_variance ( 0.1 );
30
30
* // returns ~90.0
31
31
*/
32
32
double stdlib_base_dists_geometric_variance ( const double p ) {
You can’t perform that action at this time.
0 commit comments