mescla.types

Core data containers shared across Mescla.

The containers are deliberately thin: they carry a numeric matrix plus the labels needed to keep species and samples straight, and they know how to convert to and from pandas.DataFrame. Every public function in the library accepts plain arrays, DataFrames or these containers, and returns a result object from here.

Notation follows Carrera et al. (2004) throughout:

ne

number of end-members

np_

number of mixed samples (np is taken by NumPy)

ns

number of chemical species

Classes

ChemTable

A matrix of concentrations with row and column labels.

DiagnosticsReport

Per-species goodness-of-fit for a mixing model (Hooper, 2003).

EMMAResult

Outcome of an End-Member Mixing Analysis.

EndMembers

Chemistry of the candidate source waters (end-members).

MixingResult

Mixing ratios for a set of samples, plus whatever the estimator revised.

WaterChemistry

Chemistry of mixed water samples -- the waters whose origin you want to explain.