mtuq.misfit.waveform.level1.Helper

class mtuq.misfit.waveform.level1.Helper(d, g, norm, time_shift_min, time_shift_max, debug=False)[source]

Bases: object

Stores data and Green’s functions for a given station and provides very efficient numerical implementation of L2 norm

Public Methods

get_L1_norm

Calculates L1 norm of data and shifted synthetics

get_L2_norm

Calculates L2 norm of data and shifted synthetics via ||s - d||^2 = s^2 + d^2 - 2sd

get_synthetics

Generates synthetic waveforms using entire set of Green's functions

get_time_shift

Finds optimal time shift between the given data and synthetics generated from the given source