mescla.mixing.geometric.three_component¶
- mescla.mixing.geometric.three_component(sample, endmembers)[source]¶
Fractions in a three-component mixture from two tracers (exact solve).
Solves the 3x3 system formed by the two tracer mass balances and the closure condition. Equivalent to barycentric coordinates in the plane of the two tracers.
- Parameters:
- Returns:
ndarray, shape (n_samples, 3) – Unclipped, so negative values still flag samples outside the triangle.
- Return type: