mescla.datasets.synthetic

Synthetic mixtures with known ground truth.

Real water chemistry has no known answer, so it can demonstrate a method but never verify one. Everything in this module carries its own truth: the mixing ratios and end-member compositions that generated the data. That is what makes the test suite meaningful.

carrera_application1() and carrera_application2() reproduce the two synthetic problems of Carrera et al. (2004), so their published performance figures become assertions rather than claims.

Functions

carrera_application1

Carrera et al. (2004), Application 1: two end-members, two species.

carrera_application2

Carrera et al. (2004), Application 2: three end-members, five species.

make_mixture

Generate a mixing problem with uniformly distributed ratios.

Classes

SyntheticMixture

A generated mixing problem together with the truth that produced it.