d_567#

PySeismoSoil.helper_gof_scores.d_567(measurement: ndarray, simulation: ndarray, fmin: float | None = None, fmax: float | None = None, *, baseline: bool = True, show_fig: bool = False) → tuple[float, float, float][source]#

Calculate the 5th, 6th, and 7th goodness-of-fit scores in the GoF scheme described in Shi & Asimaki (2017).

Parameters:
  • measurement (np.ndarray) – Measured time history. Must be two-columned.

  • simulation (np.ndarray) – Simulated time history. Must be two-columned.

  • fmin (float | None, default=None) – Minimum frequency to be considered, in units of Hz. Only used when baseline is True, in which case it must be provided: unlike fmax, None is not supported and raises an error.

  • fmax (float | None, default=None) – Maximum frequency to be considered, in units of Hz. Only used when baseline is True. If None, only a high-pass filter at fmin is applied, i.e., frequencies up to the Nyquist frequency, (sampling frequency)/2.0, are kept.

  • baseline (bool, default=True) – Whether or not to perform baseline correction of the time series.

  • show_fig (bool, default=False) – Whether or not to plot.

Returns:

  • d5 (float) – RMS Acceleration score.

  • d6 (float) – RMS velocity score.

  • d7 (float) – RMS displacement score.

Notes

  • Original Matlab code (c) Jian Shi, 2/17/2015

  • Ported to Python by Flora Xia, 02/2024

References

  1. J. Shi, and D. Asimaki. (2017) “From stiffness to strength: Formulation and validation of a hybrid hyperbolic nonlinear soil model for site- response analyses.” Bulletin of the Seismological Society of America. Vol. 107, No. 3, 1336-1355.