centre
centre(position, weight=None)Calculate the weighted centroid of the vectors.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| position | np.ndarray | Array of position vectors. | required |
| weight | np.ndarray | None | Array of weights for each position. Default is None. | None |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | The weighted centroid of the input vectors. |