Add support function to calculate (and return) mixture residuals, possibly with error estimates.
Add support function to calculate (and return) mixture residuals, possibly with error estimates.