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

salvus.opt.data_normalizations.l2_energy_per_measurement

L2 energy per measurement data normalization and its jacobian.

Functions

forward_data_normalization_l2_energy_per_measurement()

def forward_data_normalization_l2_energy_per_measurement(
    data_synthetic: numpy.ndarray,
    data_observed: numpy.ndarray,
    sampling_rate_in_hertz: float,
) -> builtins.tuple: ...

Normalize a data trace by its L2 energy norm.

Parameters
  • data_synthetic numpy.ndarray — The synthetic data trace without normalization.
  • data_observed numpy.ndarray — The observed data trace without normalization.
  • sampling_rate_in_hertz float — The sampling rate of both data traces in Hz.
Returns builtins.tuple

jacobian_data_normalization_l2_energy_per_measurement()

def jacobian_data_normalization_l2_energy_per_measurement(
    adjoint_source: numpy.ndarray,
    data_synthetic: numpy.ndarray,
    data_observed: numpy.ndarray,
    sampling_rate_in_hertz: float,
) -> numpy.ndarray: ...

Apply the jacobian on L2 energy normalization to an adjoint source.

Parameters
  • adjoint_source numpy.ndarray — The adjoint source.
  • data_synthetic numpy.ndarray — The synthetic data trace without normalization.
  • data_observed numpy.ndarray — The observed data trace without normalization.
  • sampling_rate_in_hertz float — The sampling rate of the adjoint source and data in Hz.
Returns numpy.ndarray