constructMarker#
- pyCGM2.Tools.btkTools.constructMarker(acq: ~btk.btkAcquisition, label: str, markers: ~typing.List[str], numpyMethod: callable = <function mean>, desc: str = '')#
Constructs a new marker from existing markers using a specified numpy method.
- Parameters:
acq (btk.btkAcquisition) – BTK acquisition instance.
label (str) – Label for the new marker.
markers (list) – List of existing marker labels to be used in construction.
numpyMethod (callable, optional) – Numpy function to handle marker data. Defaults to np.mean.
desc (str, optional) – Description of the new marker. Defaults to an empty string.