mescla.reactions.residuals.classify_source_sink¶
- mescla.reactions.residuals.classify_source_sink(result, observed, threshold=0.1, alpha=0.05)[source]¶
Label each species conservative, source or sink.
- Parameters:
threshold (float, default 0.10) – Relative departure below which a species is called conservative, whatever its p-value. With many samples a 1% departure becomes statistically significant while remaining chemically meaningless, so significance alone is not enough.
alpha (float, default 0.05) – Significance level for the paired t-test.
result (MixingResult)
observed (Any)
- Returns:
DataFrame – The comparison table plus
behaviour("conservative","source"or"sink") andlikely_processdrawn fromPROCESS_HINTS.- Return type:
pd.DataFrame