Skip to content

Commit a1bc883

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 26b823d commit a1bc883

File tree

5 files changed

+9
-25
lines changed

5 files changed

+9
-25
lines changed

lib/node_modules/@stdlib/stats/base/dists/normal/kurtosis/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ static double random_uniform( const double min, const double max ) {
201201
}
202202
203203
int main( void ) {
204-
double mu;
205204
double sigma;
205+
double mu;
206206
double y;
207207
int i;
208208

lib/node_modules/@stdlib/stats/base/dists/normal/kurtosis/benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
var bench = require( '@stdlib/bench' );
2424
var Float64Array = require( '@stdlib/array/float64' );
25-
var randu = require( '@stdlib/random/base/randu' );
25+
var uniform = require( '@stdlib/random/base/uniform' );
2626
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2727
var EPS = require( '@stdlib/constants/float64/eps' );
2828
var pkg = require( './../package.json' ).name;
@@ -42,8 +42,8 @@ bench( pkg, function benchmark( b ) {
4242
mu = new Float64Array( len );
4343
sigma = new Float64Array( len );
4444
for ( i = 0; i < len; i++ ) {
45-
mu[ i ] = ( randu() * 100.0 ) - 50.0;
46-
sigma[ i ] = ( randu() * 20.0 ) + EPS;
45+
mu[ i ] = uniform( -50.0, 50.0 );
46+
sigma[ i ] = uniform( EPS, 20.0 );
4747
}
4848

4949
b.tic();

lib/node_modules/@stdlib/stats/base/dists/normal/kurtosis/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ static double random_uniform( const double min, const double max ) {
2626
}
2727

2828
int main( void ) {
29-
double mu;
3029
double sigma;
30+
double mu;
3131
double y;
3232
int i;
3333

lib/node_modules/@stdlib/stats/base/dists/normal/kurtosis/include/stdlib/stats/base/dists/normal/kurtosis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
* Evaluates the kurtosis for a normal distribution with mean `mu` and standard deviation `sigma`.
30+
* Returns the excess kurtosis for a normal distribution with mean `mu` and standard deviation `sigma`.
3131
*/
3232
double stdlib_base_dists_normal_kurtosis( const double mu, const double sigma );
3333

lib/node_modules/@stdlib/stats/base/dists/normal/kurtosis/src/main.c

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,13 @@
2222
/**
2323
* Returns the excess kurtosis for a normal distribution with mean `mu` and standard deviation `sigma`.
2424
*
25-
* @param mu mean of the distribution
26-
* @param sigma standard deviation of the distribution
27-
* @return excess kurtosis of the normal distribution
25+
* @param mu mean
26+
* @param sigma standard deviation
27+
* @return excess kurtosis
2828
*
2929
* @example
3030
* double y = stdlib_base_dists_normal_kurtosis( 0.0, 1.0 );
3131
* // returns 0.0
32-
*
33-
* @example
34-
* double y = stdlib_base_dists_normal_kurtosis( 5.0, 3.0 );
35-
* // returns 0.0
36-
*
37-
* @example
38-
* double y = stdlib_base_dists_normal_kurtosis( NAN, 1.0 );
39-
* // returns NaN
40-
*
41-
* @example
42-
* double y = stdlib_base_dists_normal_kurtosis( 0.0, NAN );
43-
* // returns NaN
44-
*
45-
* @example
46-
* double y = stdlib_base_dists_normal_kurtosis( 0.0, 0.0 );
47-
* // returns NaN
4832
*/
4933
double stdlib_base_dists_normal_kurtosis( const double mu, const double sigma ) {
5034
if (

0 commit comments

Comments
 (0)