ertkit.results.InversionResult#
- class ertkit.results.InversionResult(*, predicted, residuals, chi2, chi2_target, n_data, converged, stop_reason, n_iterations)#
Common part of every inversion result.
Results are immutable: their arrays are read-only.
- Attributes:
- predictedndarray
Data predicted by the final model (apparent resistivity, ohm meters).
- residualsndarray
Normalized residuals \((d_i - f_i)/s_i\) of the log data, one per reading; their squares sum to
chi2. For a fit to the noise level they scatter around 0 with a spread of about 1, without trends.- chi2float
Final misfit \(\chi^2\) of the log data.
- chi2_targetfloat
The misfit the method aimed at: \(N_d - p\), the value expected for a fit with \(p\) free parameters that matches the data to their errors; \(N_d\) for a smooth inversion, or 1.1 times the smallest misfit when \(N_d\) cannot be reached.
- n_dataint
Number of data \(N_d\).
- convergedbool
Whether the method met its convergence criterion.
- stop_reasonstr
Why the iteration stopped.
- n_iterationsint
Number of iterations (or function evaluations, for methods that count those).
- property chi2_ratio#
\(\chi^2\) divided by its target; about 1 for a fit to the noise level.
- summary()#
Readable summary of the fit and the model.
Uncertainty factors are written
x/ f: the value multiplied or divided byf.