sampleRankCorrelation
sampleRankCorrelation(
x,y):number
Defined in: src/sample_rank_correlation.js:53
The rank correlation is a measure of the strength of monotonic relationship between two arrays
Tied values share the average of the ranks they span, so the result
depends only on the paired data and not on the order the pairs are given
in. When either input has no rank variance the correlation is undefined
and the result is NaN.
Parameters
Section titled “Parameters”number[]
first input
number[]
second input
Returns
Section titled “Returns”number
sample rank correlation
Example
Section titled “Example”sampleRankCorrelation([1, 2, 3, 4, 5], [1, 4, 9, 16, 25]);// => 1