2.3.9. sdepy.true_wiener_source¶
-
class
sdepy.
true_wiener_source
(*, paths=1, vshape=(), dtype=None, corr=None, rho=None, rtol='max', t0=0.0, z0=0.0)[source]¶ dw, source of standard Wiener process (brownian motion) increments with memory.
Parameters: - paths, vshape, dtype, corr, rho
See
wiener_source
class documentation.- rtol, t0, z0
See
true_source
class documentation.
Returns: - array
Once instantiated as
dw
,dw(t)
returnsz0
plus a realization of the standard Wiener process increment from timet0
tot
, anddw(t, dt)
returnsdw(t + dt) - dw(t)
. The returned values follow a probability distribution conditional on values realized in previous calls.
Notes
For time-dependent correlations the result is approximate, mind running a first evaluation on a sequence of consecutive closely spaced time points in the region of interest.
Attributes: Methods
See source and true_source methods.