File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/node_modules/@stdlib/stats/base/ndarray/snanmean/benchmark Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ var bench = require( '@stdlib/bench' );
24
24
var uniform = require ( '@stdlib/random/base/uniform' ) ;
25
25
var bernoulli = require ( '@stdlib/random/base/bernoulli' ) ;
26
26
var filledarrayBy = require ( '@stdlib/array/filled-by' ) ;
27
- var isnan = require ( '@stdlib/math/base/assert/is-nan ' ) ;
27
+ var isnanf = require ( '@stdlib/math/base/assert/is-nanf ' ) ;
28
28
var pow = require ( '@stdlib/math/base/special/pow' ) ;
29
29
var ndarray = require ( '@stdlib/ndarray/base/ctor' ) ;
30
30
var pkg = require ( './../package.json' ) . name ;
@@ -69,12 +69,12 @@ function createBenchmark( len ) {
69
69
b . tic ( ) ;
70
70
for ( i = 0 ; i < b . iterations ; i ++ ) {
71
71
v = snanmean ( [ x ] ) ;
72
- if ( isnan ( v ) ) {
72
+ if ( isnanf ( v ) ) {
73
73
b . fail ( 'should not return NaN' ) ;
74
74
}
75
75
}
76
76
b . toc ( ) ;
77
- if ( isnan ( v ) ) {
77
+ if ( isnanf ( v ) ) {
78
78
b . fail ( 'should not return NaN' ) ;
79
79
}
80
80
b . pass ( 'benchmark finished' ) ;
You can’t perform that action at this time.
0 commit comments