simpeg.data_misfit.L2DataMisfit.residual#
- L2DataMisfit.residual(m, f=None)[source]#
Computes the data residual vector for a given model.
Where
is the observed data vector and is the predicted data vector for a model vector , this function computes the data residual:- Parameters:
- m(
n_param
, )numpy.ndarray
The model for which the function is evaluated.
- f
None
orsimpeg.fields.Fields
,optional
A SimPEG fields object. Used when the fields for the model m have already been computed.
- m(
- Returns:
- (
n_data
, )numpy.ndarray
The data residual vector.
- (