JointPatternFilter#
- class pyCGM2.Processing.JointPatterns.jointPatternFilters.JointPatternFilter(jointPatternProcedure: JointPatternProcedure, analysis: Analysis)#
Filter for analyzing and interpreting joint patterns in movement analyses.
- Parameters:
jointPatternProcedure (JointPatternProcedure) – The procedure used for joint pattern detection.
analysis (Analysis) – The analysis instance containing the data to be analyzed.
- __init__(jointPatternProcedure: JointPatternProcedure, analysis: Analysis)#
Methods
__init__
(jointPatternProcedure, analysis)getPatterns
([filter])Detects and returns joint patterns.
Extracts values from detected joint patterns.
interpretCriteria
(criteria)Interprets criteria for joint pattern models.
- getPatterns(filter: bool = False)#
Detects and returns joint patterns.
- Parameters:
filter (bool, optional) – If True, filters the results. Defaults to False.
- Returns:
pd.DataFrame – DataFrame of detected joint patterns.
- getValues()#
Extracts values from detected joint patterns.
- Returns:
pd.DataFrame – DataFrame containing the extracted values.
- classmethod interpretCriteria(criteria: str)#
Interprets criteria for joint pattern models.
- Parameters:
criteria (str) – Criteria defined for pattern detection.
- Returns:
Tuple[List[Dict[str, Any]], List[Dict[str, Any]]] – Returns primary and secondary criteria.