Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
Loading...
Searching...
No Matches
Functions
calculateCMC.m File Reference

Function to caluclate the Coefficient of Multiple Correlation. More...

Functions

function calculateCMC (in y1f, in y2f)
 Function to caluclate the Coefficient of Multiple Correlation.
 

Detailed Description

Function to caluclate the Coefficient of Multiple Correlation.

Author
Marlies Nitschke
Date
December, 2018

Function Documentation

◆ calculateCMC()

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 \)

CMC_value = calculateCMC(y1f, y2f)
function calculateCMC(in y1f, in y2f)
Function to caluclate the Coefficient of Multiple Correlation.

Warning:

  • If the IMC and OMC signals are not of the same size, an error will be thrown.
Parameters
y1fDouble vector: Signal 1
y2fDouble vector: Signal 2
Return values
CMC_valueDouble: Coefficient of mulitiple correlation which is between 0 and 1