dreye.cartesian_to_barycentric#

dreye.cartesian_to_barycentric(X, L1=None, centered=False)[source]#

Convert from cartesian to barycentric coordinates.

Parameters:
Xnp.ndarray

Input array with points in cartesian coordinates.

L1np.ndarray, optional

L1 normalization values, by default None.

centeredbool, optional

If True, center the coordinates, by default False.

Returns:
np.ndarray

The input array converted to barycentric coordinates.