Type of elements within the source iterable.
Type of elements within the other iterable.
The source iterable whose elements align with other by index.
The iterable that provides the second series of aligned values.
Optionalselector: Selector<TElement, number>Optional projection that extracts the numeric value for each element of source. Defaults to treating the element itself as numeric.
OptionalotherSelector: Selector<TSecond, number>Optional projection that extracts the numeric value for each element of other. Defaults to treating the element itself as numeric.
The correlation coefficient in the interval [-1, 1].
Re-throws any error encountered while iterating either iterable or executing the selector projections.
Computes the Pearson correlation coefficient between source and other.