We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93f083e commit b067f2fCopy full SHA for b067f2f
1 file changed
lib/node_modules/@stdlib/stats/incr/mda/lib/main.js
@@ -70,14 +70,13 @@ function incrmda() {
70
if ( arguments.length === 0 ) {
71
return mean();
72
}
73
- if ( FLG ) {
74
- sf = signum( f-f0 );
75
- sa = signum( a-a0 );
76
- } else {
+ if ( FLG === void 0 ) {
77
FLG = true;
78
- sf = 1.0;
79
- sa = 1.0;
+ f0 = f;
+ a0 = a;
80
+ sf = signum( f-f0 );
+ sa = signum( a-a0 );
81
f0 = f;
82
a0 = a;
83
return mean( kroneckerDelta( sf, sa ) );
0 commit comments