ktk.kinematics.extend_cluster

Contents

ktk.kinematics.extend_cluster#

extend_cluster(markers, /, cluster, name)[source]#

Add a point to an existing cluster.

Parameters:
  • markers (TimeSeries) – TimeSeries that includes the new point trajectory, along with point trajectories from the cluster definition.

  • cluster (dict[str, ndarray]) – The source cluster to add a new point to.

  • name (str) – The name of the point to add (data key of the markers TimeSeries).

Returns:

A copy of the initial cluster, with the added point.

Return type:

dict[str, np.ndarray]

Note

0.10.0: Parameter new_point was changed to name