d_10#
- PySeismoSoil.helper_gof_scores.d_10(measurement: ndarray, simulation: ndarray, fmin: float | None = None, fmax: float | None = None, baseline: bool = True, show_fig: bool = False) float [source]#
Cross-correlation measure of goodness-of-fit, as described in: Anderson (2004).
- Parameters:
measurement (np.ndarray) – Measured time history. Must be two-columned.
simulation (np.ndarray) – Simulated time history. Must be two-columned.
fmin (float | None) – Minimum frequency to be considered, in units of Hz. Default is (sampling frequency)/(length of time series).
fmax (float | None) – Maximum frequency to be considered, in units of Hz. Default is (sampling frequency)/2.0.
baseline (bool) – Whether or not to perform baseline correction of the time series.
show_fig (bool) – Whether or not to plot.
- Returns:
d10 – Cross correlation score.
- Return type:
float
- Raises:
ValueError – If fmin is greater than fmax
TypeError – If measurement is not the same length as simulation
References
Anderson, J. G. (2004, August). Quantitative measure of the goodness-of-fit of synthetic seismograms. In Proceedings of the 13th world conference on earthquake engineering (Vol. 243, p. 243). Vancouver, BC, Canada: International Association for Earthquake Engineering.