Mondaic
This API reference is not for the latest stable Salvus version.

salvus.opt.misfits.l2_misfit

L2 misfits and adjoint sources.

Functions

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_synthetic numpy.ndarray — synthetic waveforms.
  • sampling_rate_in_hertz float — Sampling rate.
Returns Tuple[float, numpy.ndarray] — tuple of misfit value 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_synthetic numpy.ndarray — synthetic waveforms.
  • data_observed numpy.ndarray — observed waveforms.
  • sampling_rate_in_hertz float — Sampling rate.
Returns Tuple[float, numpy.ndarray] — tuple of misfit value and adjoint source