ertkit.ves.LayerFit#
- class ertkit.ves.LayerFit(*, predicted, residuals, chi2, chi2_target, n_data, converged, stop_reason, n_iterations, model, parameter_names, std_log, covariance, correlation, depths, depth_std, static_shift, segment_mn2, p_value, n_starts, at_bound)#
Result of a few-layer inversion.
- Attributes:
- modelLayeredModel
The best-fitting model.
- parameter_namestuple of str
Names of the estimated parameters, in order:
rho_1, …,rho_N,h_1, …,h_{N-1}, thenshift_2, … for the static-shift factors of the second and later MN segments.- std_logndarray
Linearized standard deviation of the natural logarithm of each parameter;
inffor parameters the data do not determine.- covariancendarray
Linearized covariance matrix of the log parameters; rows and columns of undetermined parameters are
infon the diagonal andnanelsewhere.- correlationndarray
Linearized correlation matrix of the log parameters (
nanfor undetermined parameters).- depthsndarray
Depths to the bottoms of the upper \(N - 1\) layers, in meters.
- depth_stdndarray
Linearized standard deviations of
depths, in meters (infwhen a thickness above is undetermined). When the standard deviation of a log thickness exceeds about 0.5, the linearization is poor and these values are only indicative.- static_shiftndarray
Multiplicative static-shift factor of each MN segment, relative to the first segment (whose factor is 1 by definition). All ones when shifts were not estimated.
- segment_mn2ndarray
MN/2 of each segment, in meters, in the order of
static_shift.- p_valuefloat
Probability of a misfit at least this large if the model and the error model were right (\(\chi^2\) distribution with \(N_d - p\) degrees of freedom).
- n_startsint
Number of starting models tried.
- at_boundtuple of str
Parameters that ended at their search bounds (see the Notes of
invert_few_layer()). The data do not resolve them, and their uncertainty factors are not meaningful.
See also
ertkit.InversionResultThe attributes common to all results.
- property chi2_ratio#
\(\chi^2\) divided by its target; about 1 for a fit to the noise level.
- property factor#
Multiplicative uncertainty \(e^{s}\) of each parameter.
A factor of 1.2 means the parameter is known within a factor of 1.2, that is, multiplied or divided by 1.2 (one standard deviation, linearized). Parameters the data do not determine give
inf.
- summary()#
Readable summary of the fit and the model.
Uncertainty factors are written
x/ f: the value multiplied or divided byf.