OU#
- class pypillometry.signal.gaussmarkov.OU(sigma=1.0, tau=100.0)[source]#
Bases:
ComponentOrnstein-Uhlenbeck process,
k(r) = sigma^2 exp(-r / tau)(the Matérn process withnu = 1/2).Examples
>>> ou = OU(sigma=1., tau=200.) >>> A, Q = ou.discretise(1.) >>> bool(np.isclose(A[0, 0], np.exp(-1 / 200.))) True
Methods
Autocovariance k(tau) of the output at lags tau (ms).
Exact discretisation for a time step dt (ms).
dict of the parameters
One-sided power spectral density of the output at frequencies freq (Hz), in signal units squared per Hz; its integral over all frequencies is the variance.
Continuous-time state space (
ContinuousSS).Semivariogram gamma(tau) = k(0) - k(tau) of the output (ms).
copy with some parameters (or structural fields) changed
Details
- discretise(dt)#
Exact discretisation for a time step dt (ms).
- psd(freq)#
One-sided power spectral density of the output at frequencies freq (Hz), in signal units squared per Hz; its integral over all frequencies is the variance.
\[S(f) = \frac{2}{1000} H (i\omega - F)^{-1} Q_n (-i\omega - F^\top)^{-1} H^\top, \qquad \omega = 2\pi f / 1000\]- Return type: