Skip to content
Open
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 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 cdf = require( './../lib' );

Expand Down Expand Up @@ -60,7 +61,7 @@ bench( pkg, function benchmark( b ) {
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s::factory', pkg ), function benchmark( b ) {
var mycdf;
var opts;
var a;
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 EPS = require( '@stdlib/constants/float64/eps' );
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 opts;
var a;
var s;
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 Kumaraswamy = require( './../lib' );


// MAIN //

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

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

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

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

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

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

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

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

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

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

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

bench( pkg+':cdf', function benchmark( bm ) {
bench( format( '%s:cdf', pkg ), function benchmark( bm ) {
var dist;
var opts;
var a;
Expand Down Expand Up @@ -411,7 +412,7 @@ bench( pkg+':cdf', function benchmark( bm ) {
bm.end();
});

bench( pkg+':logcdf', function benchmark( bm ) {
bench( format( '%s:logcdf', pkg ), function benchmark( bm ) {
var dist;
var opts;
var a;
Expand Down Expand Up @@ -444,7 +445,7 @@ bench( pkg+':logcdf', function benchmark( bm ) {
bm.end();
});

bench( pkg+':logpdf', function benchmark( bm ) {
bench( format( '%s:logpdf', pkg ), function benchmark( bm ) {
var dist;
var opts;
var a;
Expand Down Expand Up @@ -477,7 +478,7 @@ bench( pkg+':logpdf', function benchmark( bm ) {
bm.end();
});

bench( pkg+':pdf', function benchmark( bm ) {
bench( format( '%s:pdf', pkg ), function benchmark( bm ) {
var dist;
var opts;
var a;
Expand Down Expand Up @@ -510,7 +511,7 @@ bench( pkg+':pdf', function benchmark( bm ) {
bm.end();
});

bench( pkg+':quantile', function benchmark( bm ) {
bench( format( '%s:quantile', pkg ), function benchmark( bm ) {
var dist;
var opts;
var a;
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 EPS = require( '@stdlib/constants/float64/eps' );
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 shape1;
var shape2;
var opts;
Expand All @@ -54,7 +55,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = kurtosis( shape1[ i % shape1.length ], shape2[ i % shape2.length ] );

Check warning on line 58 in lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/kurtosis/benchmark/benchmark.native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 81. 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 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 logcdf = require( './../lib' );

Expand Down Expand Up @@ -60,7 +61,7 @@ bench( pkg, function benchmark( b ) {
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s::factory', pkg ), function benchmark( b ) {
var mylogcdf;
var opts;
var a;
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 EPS = require( '@stdlib/constants/float64/eps' );
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 opts;
var a;
var s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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 logpdf = require( './../lib' );

Expand Down Expand Up @@ -60,7 +61,7 @@ bench( pkg, function benchmark( b ) {
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s::factory', pkg ), function benchmark( b ) {
var mylogpdf;
var opts;
var a;
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 EPS = require( '@stdlib/constants/float64/eps' );
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 opts;
var a;
var s;
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 shape1;
var shape2;
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 EPS = require( '@stdlib/constants/float64/eps' );
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 alpha;
var beta;
var opts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var bench = require( '@stdlib/bench' );
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 @@ -38,7 +39,7 @@ var opts = {

// MAIN //

bench( pkg+'::native', opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var shape1;
var shape2;
var opts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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 pdf = require( './../lib' );

Expand Down Expand Up @@ -60,7 +61,7 @@ bench( pkg, function benchmark( b ) {
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s::factory', pkg ), function benchmark( b ) {
var mypdf;
var opts;
var a;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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 quantile = require( './../lib' );

Expand Down Expand Up @@ -60,7 +61,7 @@ bench( pkg, function benchmark( b ) {
b.end();
});

bench( pkg+':factory', function benchmark( b ) {
bench( format( '%s::factory', pkg ), function benchmark( b ) {
var myQuantile;
var opts;
var a;
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 EPS = require( '@stdlib/constants/float64/eps' );
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 opts;
var a;
var s;
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 tryRequire = require( '@stdlib/utils/try-require' );
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 shape1;
var shape2;
var opts;
Expand All @@ -54,7 +55,7 @@

b.tic();
for ( i = 0; i < b.iterations; i++ ) {
y = skewness( shape1[ i % shape1.length ], shape2[ i % shape2.length ] );

Check warning on line 58 in lib/node_modules/@stdlib/stats/base/dists/kumaraswamy/skewness/benchmark/benchmark.native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 81. Maximum allowed is 80
if ( isnan( y ) ) {
b.fail( 'should not return NaN' );
}
Expand Down
Loading