Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
|
Function to caluclate the Coefficient of Multiple Correlation. More...
Functions | |
function | calculateCMC (in y1f, in y2f) |
Function to caluclate the Coefficient of Multiple Correlation. | |
Function to caluclate the Coefficient of Multiple Correlation.
function calculateCMC | ( | in | y1f, |
in | y2f | ||
) |
Function to caluclate the Coefficient of Multiple Correlation.
This function will caluclate the Coefficient of Multiple Correlation or CMC for statistical analysis, in order to compare two signals \( Y_{1f} \) and \( Y_{2f} \). It is used to assess the similarity of waveforms. A higher value indicates higher similarity.
\( CMC = \sqrt{1 - \frac{\displaystyle\sum_{m=1}^{M}\sum_{f=1}^{F} (Y_{mf}-\bar{Y}_f)^2 / (F (M-1) )}{\displaystyle\sum_{m=1}^{M}\sum_{f=1}^{F} (Y_{mf}-\bar{Y})^2 / (MF-1) )} } \)
\( \bar{Y}_f = \frac {1}{M} \displaystyle\sum_{m=1}^{M}Y_{mf} \)
\( \bar{Y} = \frac {1}{MF} \displaystyle\sum_{m=1}^{M}\sum_{f=1}^{F}Y_{mf} \)
In this function: \( M=2 \Rightarrow \)
\( Y_{1f} = \left[y_{11},y_{12},\ldots,y_{1F} \right]^T \)
\( Y_{2f} = \left[y_{21},y_{22},\ldots,y_{2F} \right]^T \)
Warning:
y1f | Double vector: Signal 1 |
y2f | Double vector: Signal 2 |
CMC_value | Double: Coefficient of mulitiple correlation which is between 0 and 1 |