Computes the sample correlation coefficient (an estimate to the population Pearson correlation) as follows.
.
Where, & are the sample standard deviations of x and y respectively.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=real64), | intent(in), | dimension(:) | :: | x |
The first N-element data set. |
|
real(kind=real64), | intent(in), | dimension(size(x)) | :: | y |
The second N-element data set. |
The correlation coefficient.