Skip to content

Commit eeaf704

Browse files
committed
refactor random number generation
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
2 parents c60210c + 22e5e4c commit eeaf704

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ for ( i = 0; i < lambda.length; i++ ) {
148148

149149
#### stdlib_base_dists_planck_kurtosis( lambda)
150150

151-
Evaluates the kurtosis for a Planck distribution with shape parameter `lambda`.
151+
Evaluates the excess kurtosis for a Planck distribution with shape parameter `lambda`.
152152

153153
```c
154154
double out = stdlib_base_dists_planck_kurtosis( 0.1 );
@@ -194,14 +194,11 @@ int main( void ) {
194194
double lambda;
195195
double y;
196196
int i;
197-
198197
for ( i = 0; i < 25; i++ ) {
199198
lambda = random_uniform( 0.1, 10.0 );
200199
y = stdlib_base_dists_planck_kurtosis( lambda );
201200
printf( "λ: %lf, Kurt(X;λ): %lf\n", lambda, y );
202201
}
203-
204-
return 0;
205202
}
206203
```
207204

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
// MODULES //
2222

2323
var bench = require( '@stdlib/bench' );
24-
var Float64Array = require( '@stdlib/array/float64' );
2524
var uniform = require( '@stdlib/random/base/uniform' );
25+
var Float64Array = require( '@stdlib/array/float64' );
2626
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2727
var pkg = require( './../package.json' ).name;
2828
var kurtosis = require( './../lib' );
@@ -39,7 +39,7 @@ bench( pkg, function benchmark( b ) {
3939
len= 100;
4040
lambda = new Float64Array( len );
4141
for ( i = 0; i < len; i++ ) {
42-
lambda[ i ] = uniform( 1.0, 10.0 );
42+
lambda[i] = uniform( 1.0, 10.0 );
4343
}
4444

4545
b.tic();

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

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4747

4848
len= 100;
4949
lambda = new Float64Array( len );
50-
5150
for ( i = 0; i < len; i++ ) {
5251
lambda[ i ] = uniform( 1.0, 10.0 );
5352
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern "C" {
2727
#endif
2828

2929
/**
30-
* Evaluates the excess kurtosis for a Planck distribution with shape parameter `lambda`.
30+
* Evaluates the excess kurtosis for an planck distribution with shape parameter lambda (λ).
3131
*/
3232
double stdlib_base_dists_planck_kurtosis( const double lambda );
3333

0 commit comments

Comments
 (0)