fastPearsonBoxed

Computes Pearson correlation on boxed arrays (Array<Double>).

  • Preserved for legacy compatibility (e.g., Average branch).

  • Internally performs the same streaming accumulator as the primitive version.

Return

Pearson’s r in [-1.0, +1.0], or 0.0 if denominator is 0

Parameters

left

left-hand boxed vector

right

right-hand boxed vector