Returns an accumulator function which incrementally computes a sample absolute Pearson product-moment correlation coefficient.
mean value
mean value
accumulator function
var accumulator = incrapcorr( 2.0, -3.0 );
Returns an accumulator function which incrementally computes a sample absolute Pearson product-moment correlation coefficient.
accumulator function
var accumulator = incrapcorr();
var ar = accumulator();
// returns null
ar = accumulator( 2.0, 1.0 );
// returns 0.0
ar = accumulator( -5.0, 3.14 );
// returns ~1.0
ar = accumulator();
// returns ~1.0
If provided arguments, returns an updated sample absolute Pearson product-moment correlation coefficient; otherwise, returns the current sample absolute Pearson product-moment correlation coefficient.
Notes
NaN
or a value which, when used in computations, results inNaN
, the accumulated value isNaN
for all future invocations.value
value
sample absolute Pearson product-moment correlation coefficient