private SIdata SymmetryIndex(float SIfoot1, float SIfoot2) { SIdata siData = new SIdata(); siData.SymmetryIndex = 100 * (SIfoot2 - SIfoot1) / (SIfoot1 + SIfoot2); if (foot1 == "right") { siData.SymmetryIndex = -siData.SymmetryIndex; //keep SI relative to right limb } siData.Time = statetable[tablepointer]; return(siData); }
private SIdata SymmetryIndex(float SIfoot1, float SIfoot2) { SIdata siData = new SIdata(); siData.SymmetryIndex = 100 * (SIfoot2 - SIfoot1) / (SIfoot1 + SIfoot2); if (foot1 == "right") siData.SymmetryIndex = - siData.SymmetryIndex; //keep SI relative to right limb siData.Time = statetable[tablepointer]; return siData; }