variogram_check#
- pypillometry.signal.gaussmarkov.variogram_check(bank, theta, y, fs, segments=None, n_sim=40, per_decade=8, channel=0, rng=None)[source]#
Semivariogram of the data against that of the fitted model.
The envelope comes from signals simulated from the model with the same gaps and segments as the data (parametric bootstrap). The check is sensitive to misfit at long lags, which the likelihood hardly sees.
- Parameters:
bank (TimescaleBank)
theta (array) – parameter vector
y – signal, sampling rate (Hz) and segments, as for
fit_bank()fs – signal, sampling rate (Hz) and segments, as for
fit_bank()segments – signal, sampling rate (Hz) and segments, as for
fit_bank()n_sim (int) – number of simulations (default 40)
per_decade (int) – number of lags per decade (default 8)
channel (int) – channel of the signal (default 0)
rng (np.random.Generator or int, optional)
- Return type: