mescla.mixing.geometric

Closed-form mixing fractions for the small cases, and the U-space solve.

These are the formulas taught in every hydrology course. They are worth having explicitly, not because they are faster, but because they are transparent: when a least-squares result surprises you, the two-component formula shows you why.

Functions

three_component

Fractions in a three-component mixture from two tracers (exact solve).

two_component

Fraction of end-member 1 in a two-component mixture, from one tracer.

uspace_solve

Mixing ratios directly from U-space geometry.