Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var cdf = require( './../lib' );

Expand All @@ -47,7 +48,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = cdf( x[ i % x.length ], mu[ i % mu.length ], sigma[ i % sigma.length ] );

Check warning on line 51 in lib/node_modules/@stdlib/stats/base/dists/lognormal/cdf/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 85. Maximum allowed is 80
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand All @@ -60,7 +61,7 @@
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s:factory', pkg ), function benchmark( b ) {
var mycdf;
var sigma;
var opts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ var bench = require( '@stdlib/bench' );
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var LogNormal = require( './../lib' );


// MAIN //

bench( pkg+'::instantiation', function benchmark( b ) {
bench( format( '%s::instantiation', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -58,7 +59,7 @@ bench( pkg+'::instantiation', function benchmark( b ) {
b.end();
});

bench( pkg+'::get:mu', function benchmark( b ) {
bench( format( '%s::get:mu', pkg ), function benchmark( b ) {
var sigma;
var dist;
var mu;
Expand All @@ -84,7 +85,7 @@ bench( pkg+'::get:mu', function benchmark( b ) {
b.end();
});

bench( pkg+'::set:mu', function benchmark( b ) {
bench( format( '%s::set:mu', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -116,7 +117,7 @@ bench( pkg+'::set:mu', function benchmark( b ) {
b.end();
});

bench( pkg+'::get:sigma', function benchmark( b ) {
bench( format( '%s::get:sigma', pkg ), function benchmark( b ) {
var sigma;
var dist;
var mu;
Expand All @@ -142,7 +143,7 @@ bench( pkg+'::get:sigma', function benchmark( b ) {
b.end();
});

bench( pkg+'::set:sigma', function benchmark( b ) {
bench( format( '%s::set:sigma', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -174,7 +175,7 @@ bench( pkg+'::set:sigma', function benchmark( b ) {
b.end();
});

bench( pkg+':entropy', function benchmark( b ) {
bench( format( '%s:entropy', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -208,7 +209,7 @@ bench( pkg+':entropy', function benchmark( b ) {
b.end();
});

bench( pkg+':kurtosis', function benchmark( b ) {
bench( format( '%s:kurtosis', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -242,7 +243,7 @@ bench( pkg+':kurtosis', function benchmark( b ) {
b.end();
});

bench( pkg+':mean', function benchmark( b ) {
bench( format( '%s:mean', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -276,7 +277,7 @@ bench( pkg+':mean', function benchmark( b ) {
b.end();
});

bench( pkg+':median', function benchmark( b ) {
bench( format( '%s:median', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -310,7 +311,7 @@ bench( pkg+':median', function benchmark( b ) {
b.end();
});

bench( pkg+':mode', function benchmark( b ) {
bench( format( '%s:mode', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -344,7 +345,7 @@ bench( pkg+':mode', function benchmark( b ) {
b.end();
});

bench( pkg+':skewness', function benchmark( b ) {
bench( format( '%s:skewness', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -378,7 +379,7 @@ bench( pkg+':skewness', function benchmark( b ) {
b.end();
});

bench( pkg+':stdev', function benchmark( b ) {
bench( format( '%s:stdev', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -412,7 +413,7 @@ bench( pkg+':stdev', function benchmark( b ) {
b.end();
});

bench( pkg+':variance', function benchmark( b ) {
bench( format( '%s:variance', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -446,7 +447,7 @@ bench( pkg+':variance', function benchmark( b ) {
b.end();
});

bench( pkg+':cdf', function benchmark( b ) {
bench( format( '%s:cdf', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -479,7 +480,7 @@ bench( pkg+':cdf', function benchmark( b ) {
b.end();
});

bench( pkg+':logpdf', function benchmark( b ) {
bench( format( '%s:logpdf', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -512,7 +513,7 @@ bench( pkg+':logpdf', function benchmark( b ) {
b.end();
});

bench( pkg+':pdf', function benchmark( b ) {
bench( format( '%s:pdf', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down Expand Up @@ -545,7 +546,7 @@ bench( pkg+':pdf', function benchmark( b ) {
b.end();
});

bench( pkg+':quantile', function benchmark( b ) {
bench( format( '%s:quantile', pkg ), function benchmark( b ) {
var sigma;
var dist;
var opts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;


Expand All @@ -39,7 +40,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var mu;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var EPS = require( '@stdlib/constants/float64/eps' );
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;


Expand All @@ -39,7 +40,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var mu;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var logcdf = require( './../lib' );

Expand All @@ -47,7 +48,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = logcdf( x[ i % x.length ], mu[ i % mu.length ], sigma[ i % sigma.length ] );

Check warning on line 51 in lib/node_modules/@stdlib/stats/base/dists/lognormal/logcdf/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 88. Maximum allowed is 80
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand All @@ -60,7 +61,7 @@
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s:factory', pkg ), function benchmark( b ) {
var mylogcdf;
var sigma;
var opts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var logpdf = require( './../lib' );

Expand All @@ -47,7 +48,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = logpdf( x[ i % x.length ], mu[ i % mu.length ], sigma[ i % sigma.length ] );

Check warning on line 51 in lib/node_modules/@stdlib/stats/base/dists/lognormal/logpdf/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 88. Maximum allowed is 80
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand All @@ -60,7 +61,7 @@
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s:factory', pkg ), function benchmark( b ) {
var mylogpdf;
var sigma;
var opts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;


Expand All @@ -39,7 +40,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var mu;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;


Expand All @@ -39,7 +40,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var mu;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;


Expand All @@ -39,7 +40,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var mu;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var pdf = require( './../lib' );

Expand All @@ -47,7 +48,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = pdf( x[ i % x.length ], mu[ i % mu.length ], sigma[ i % sigma.length ] );

Check warning on line 51 in lib/node_modules/@stdlib/stats/base/dists/lognormal/pdf/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 85. Maximum allowed is 80
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand All @@ -60,7 +61,7 @@
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s:factory', pkg ), function benchmark( b ) {
var mypdf;
var sigma;
var opts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var EPS = require( '@stdlib/constants/float64/eps' );
var uniform = require( '@stdlib/random/array/uniform' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;


Expand All @@ -39,7 +40,7 @@

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var mu;
Expand All @@ -56,7 +57,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = pdf( x[ i % x.length ], mu[ i % mu.length ], sigma[ i % sigma.length ] );

Check warning on line 60 in lib/node_modules/@stdlib/stats/base/dists/lognormal/pdf/benchmark/benchmark.native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 85. Maximum allowed is 80
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;
var quantile = require( './../lib' );

Expand All @@ -47,7 +48,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = quantile( p[ i % p.length ], mu[ i % mu.length ], sigma[ i % sigma.length ] );

Check warning on line 51 in lib/node_modules/@stdlib/stats/base/dists/lognormal/quantile/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 90. Maximum allowed is 80
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand All @@ -60,7 +61,7 @@
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s:factory', pkg ), function benchmark( b ) {
var myquantile;
var sigma;
var opts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;


Expand All @@ -39,7 +40,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var mu;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var tryRequire = require( '@stdlib/utils/try-require' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;


Expand All @@ -39,7 +40,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var mu;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var tryRequire = require( '@stdlib/utils/try-require' );
var uniform = require( '@stdlib/random/array/uniform' );
var isnan = require( '@stdlib/math/base/assert/is-nan' );
var EPS = require( '@stdlib/constants/float64/eps' );
var format = require( '@stdlib/string/format' );
var pkg = require( './../package.json' ).name;


Expand All @@ -39,7 +40,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var mu;
Expand Down