simpeg.electromagnetics.frequency_domain.Simulation3DElectricField.residual#

Simulation3DElectricField.residual(m, dobs, f=None)[source]#

The data residual.

This method computes and returns the data residual for the model provided. Where dobs are the observed data values, and dpred are the predicted data values for model parameters m, the data residual is given by:

r(m)=dpreddobs
Parameters:
m(n_param, ) numpy.ndarray

The model parameters.

dobs(n_data, ) numpy.ndarray

The observed data values.

fsimpeg.fields.Fields, optional

If provided, fields will not need to be recomputed when solving the forward problem.

Returns:
(n_data, ) numpy.ndarray

The data residual.