Calculates the Pearson product for a given set of data.
Use the following HTML code to embed the calculators within other websites:
Pearson
template<class T> doublepearson(
int
N
T*
data
T*
data1
)
Returns the Pearson product moment correlation coefficient, r, a dimensionless index that ranges from -1.0 to 1.0
inclusive and reflects the extent of a linear relationship between two data sets.
The formula for the Pearson product moment correlation coefficient, r, is: