Skip to content

Commit 909a758

Browse files
fix: added tab indentation in files
1 parent b7b6fc9 commit 909a758

File tree

2 files changed

+19
-19
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/binomial/variance

2 files changed

+19
-19
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ static void print_version( void ) {
3737
/**
3838
* Prints the TAP summary.
3939
*
40-
* @param total total number of tests
41-
* @param passing total number of passing tests
40+
* @param total total number of tests
41+
* @param passing total number of passing tests
4242
*/
4343
static void print_summary( int total, int passing ) {
4444
printf( "#\n" );
@@ -52,7 +52,7 @@ static void print_summary( int total, int passing ) {
5252
/**
5353
* Prints benchmarks results.
5454
*
55-
* @param elapsed elapsed time in seconds
55+
* @param elapsed elapsed time in seconds
5656
*/
5757
static void print_results( double elapsed ) {
5858
double rate = (double)ITERATIONS / elapsed;
@@ -77,9 +77,9 @@ static double tic( void ) {
7777
/**
7878
* Generates a random number on the interval [min,max).
7979
*
80-
* @param min minimum value (inclusive)
81-
* @param max maximum value (exclusive)
82-
* @return random number
80+
* @param min minimum value (inclusive)
81+
* @param max maximum value (exclusive)
82+
* @return random number
8383
*/
8484
static double random_uniform( const double min, const double max ) {
8585
double v = (double)rand() / ( (double)RAND_MAX + 1.0 );

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@
2222
/**
2323
* Returns the variance of a binomial distribution.
2424
*
25-
* @param n number of trials
26-
* @param p success probability
27-
* @return variance
25+
* @param n number of trials
26+
* @param p success probability
27+
* @return variance
2828
*
2929
* @example
3030
* double y = stdlib_base_dists_binomial_variance( 10, 0.5 );
3131
* // returns 2.5
3232
*/
3333
double stdlib_base_dists_binomial_variance( const double n, const double p ) {
34-
if (
35-
stdlib_base_is_nan( n ) ||
36-
stdlib_base_is_nan( p ) ||
37-
n < 0.0 ||
38-
p < 0.0 ||
39-
p > 1.0
40-
) {
41-
return 0.0 / 0.0;
42-
}
43-
return n * p * (1.0 - p);
34+
if (
35+
stdlib_base_is_nan( n ) ||
36+
stdlib_base_is_nan( p ) ||
37+
n < 0.0 ||
38+
p < 0.0 ||
39+
p > 1.0
40+
) {
41+
return 0.0 / 0.0;
42+
}
43+
return n * p * (1.0 - p);
4444
}

0 commit comments

Comments
 (0)