We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a2b590 commit ccbaa42Copy full SHA for ccbaa42
lib/node_modules/@stdlib/stats/base/dists/uniform/variance/lib/main.js
@@ -57,9 +57,7 @@ var pow = require( '@stdlib/math/base/special/pow' );
57
* // returns NaN
58
*/
59
function variance( a, b ) {
60
- if (
61
- a >= b
62
- ) {
+ if ( a >= b ) {
63
return NaN;
64
}
65
return (1.0/12.0) * pow( b-a, 2.0 );
lib/node_modules/@stdlib/stats/base/dists/uniform/variance/src/main.c
@@ -31,9 +31,7 @@
31
* // returns ~0.083
32
33
double stdlib_base_dists_uniform_variance( const double a, const double b ) {
34
35
36
37
return 0.0 / 0.0; // NaN
38
39
return ( 1.0 / 12.0 ) * stdlib_base_pow( b - a, 2.0 );
0 commit comments