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 @@ -26,6 +26,7 @@
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 @@

// MAIN //

bench( pkg, 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 = cdf( 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/normal/cdf/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 @@ -26,6 +26,7 @@
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 @@

// MAIN //

bench( pkg, 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 = logcdf( 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/normal/logcdf/benchmark/benchmark.native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 87. 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 @@ -26,6 +26,7 @@
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 @@

// MAIN //

bench( pkg, 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 = logpdf( 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/normal/logpdf/benchmark/benchmark.native.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

This line has a length of 87. 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 @@ -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, opts, function benchmark( b ) {
bench( format( '%s::native', pkg ), opts, function benchmark( b ) {
var sigma;
var opts;
var p;
Expand Down