ForcePlateIntegration#
- pyCGM2.ForcePlates.forceplates.ForcePlateIntegration(ReactionForce: ndarray, mass: float, frameInit: int = 0, frameEnd: int | None = None, v0: List = [0, 0, 0], p0: List = [0, 0, 0], analogFrequency: int = 1000) Tuple[ndarray, ndarray, ndarray] #
Integration of the reaction force to compute position, velocity, and acceleration.
This function integrates the ground reaction force to calculate the vertical acceleration, velocity, and position of the center of mass.
- Parameters:
ReactionForce (np.ndarray) – Ground reaction force (array of shape [frames, 3]).
mass (float) – Body mass in kilograms.
frameInit (int, optional) – Initial frame of the area of interest. Defaults to 0.
frameEnd (int, optional) – Final frame of the area of interest. Defaults to None (end of the array).
v0 (List, optional) – Initial velocity (in 3D). Defaults to [0, 0, 0].
p0 (List, optional) – Initial position (in 3D). Defaults to [0, 0, 0].
analogFrequency (int, optional) – Analog frequency in Hz. Defaults to 1000.
- Returns:
Tuple[np.ndarray, np.ndarray, np.ndarray] – Arrays of position, velocity, and acceleration.