Skip to content

Commit

Permalink
style: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Dec 16, 2024
1 parent 6a2b590 commit ccbaa42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ var pow = require( '@stdlib/math/base/special/pow' );
* // returns NaN
*/
function variance( a, b ) {
if (
a >= b
) {
if ( a >= b ) {
return NaN;
}
return (1.0/12.0) * pow( b-a, 2.0 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@
* // returns ~0.083
*/
double stdlib_base_dists_uniform_variance( const double a, const double b ) {
if (
a >= b
) {
if ( a >= b ) {
return 0.0 / 0.0; // NaN
}
return ( 1.0 / 12.0 ) * stdlib_base_pow( b - a, 2.0 );
Expand Down

1 comment on commit ccbaa42

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
stats/base/dists/uniform/variance $\color{green}182/182$
$\color{green}+100.00\%$
$\color{green}7/7$
$\color{green}+100.00\%$
$\color{green}2/2$
$\color{green}+100.00\%$
$\color{green}182/182$
$\color{green}+100.00\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.