File tree 1 file changed +2
-2
lines changed
lib/node_modules/@stdlib/stats/incr/nanmpcorrdist/test
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -651,7 +651,7 @@ tape( 'if the window size is `1` and the means are unknown, the accumulator func
651
651
652
652
acc = incrnanmpcorrdist ( 1 ) ;
653
653
for ( i = 0 ; i < 100 ; i ++ ) {
654
- r = acc ( ( randu ( ) < 0.2 ) ? NaN : randu ( ) * 100.0 , ( randu ( ) < 0.2 ) ? NaN : randu ( ) * 100.0 ) ;
654
+ r = acc ( randu ( ) * 100.0 , randu ( ) * 100.0 ) ;
655
655
t . equal ( r , 1.0 , 'returns expected value' ) ;
656
656
}
657
657
t . end ( ) ;
@@ -664,7 +664,7 @@ tape( 'if the window size is `1` and the means are known, the accumulator functi
664
664
665
665
acc = incrnanmpcorrdist ( 1 , 500.0 , - 500.0 ) ; // means are outside the range of simulated values so the correlation should never be zero
666
666
for ( i = 0 ; i < 100 ; i ++ ) {
667
- r = acc ( ( randu ( ) < 0.8 ) ? NaN : randu ( ) * 100.0 , ( randu ( ) < 0.8 ) ? NaN : randu ( ) * 100.0 ) ;
667
+ r = acc ( randu ( ) * 100.0 , randu ( ) * 100.0 ) ;
668
668
t . notEqual ( r , 1.0 , 'does not return 1' ) ;
669
669
}
670
670
t . end ( ) ;
You can’t perform that action at this time.
0 commit comments