Next: Weighted Samples, Previous: Covariance, Up: Statistics
This function efficiently computes the Pearson correlation coefficient between the datasets data1 and data2 which must both be of the same length n.