salvus.opt.misfits.l2_misfit
L2 misfits and adjoint sources.
Functions
l2_energy_misfit_and_adjoint_source()
l2_energy_misfit_and_adjoint_source()def l2_energy_misfit_and_adjoint_source(
data_synthetic: numpy.ndarray, sampling_rate_in_hertz: float
) -> Tuple[float, numpy.ndarray]:
...Compute the energy L2 misfit and adjoint source. It is sensitive to all energy arriving at the receiver.
This misfit does not require observed data.
Parameters
data_syntheticnumpy.ndarray — synthetic waveforms.sampling_rate_in_hertzfloat — Sampling rate.
Returns Tuple[float, numpy.ndarray] — tuple of misfit value and adjoint source
l2_misfit_and_adjoint_source()
l2_misfit_and_adjoint_source()def l2_misfit_and_adjoint_source(
data_synthetic: numpy.ndarray,
data_observed: numpy.ndarray,
sampling_rate_in_hertz: float,
) -> Tuple[float, numpy.ndarray]:
...Compute the L2 misfit and adjoint source
Parameters
data_syntheticnumpy.ndarray — synthetic waveforms.data_observednumpy.ndarray — observed waveforms.sampling_rate_in_hertzfloat — Sampling rate.
Returns Tuple[float, numpy.ndarray] — tuple of misfit value and adjoint source