pearsonCorrelation

Computes the Pearson correlation between the elements of the array based on n = min(x.size, y.size) elements. There must be at least two elements in each array.