Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
|
Function to caluclate the Pearson correlation coefficient. More...
Functions | |
function | calculateCORR (in x, in y) |
Function to caluclate the Pearson correlation coefficient. | |
Function to caluclate the Pearson correlation coefficient.
function calculateCORR | ( | in | x, |
in | y | ||
) |
Function to caluclate the Pearson correlation coefficient.
The Pearson correlation coefficient does not detect systematic biases. It quantifies the strength of linear combinaton and ranges from -1 indicating perfect negative correlaton to 1 indicating perfect positive correlation.
\( r= \displaystyle\frac{\displaystyle\sum_{i=1}^{N}(x_i - \bar{x})(y_i - \bar{y}) }{\displaystyle\sqrt{\sum_{i=1}^{N}(x_i - \bar{x})^2} \sqrt{\sum_{i=1}^{N}(y_i - \bar{y})^2}} \)
x | Double Vector: x signal |
y | Double Vector: y signal |
out_r | Double: Pearson correlation coefficient which is between -1 and 1 |