3.3.11. sdepy.true_cpoisson_source¶
-
class
sdepy.true_cpoisson_source(*, paths=1, vshape=(), dtype=None, rng=None, rtol='max', t0=0.0, z0=0.0, dn=None, ptype=<class 'int'>, lam=1.0, y=None)[source]¶ dj, a source of compound Poisson process increments (jumps) with memory.
Parameters: - paths, vshape, dtype, dn, ptype, lam, y
See
cpoisson_sourceclass documentation.- rtol, t0, z0
See
true_sourceclass documentation.- dn : true_poission_source, or None
If provided, it is used as the underlying source of Poisson process increments with memory, overriding the given
ptypeandlam. IfNone(default), it is instantiated as asdepy.true_poission_source.
Returns: - array
Once instantiated as
dj,dj(t)returnsz0plus a realization of compound Poisson process increments from timet0tot, anddj(t, dt)returnsdj(t + dt) - dj(t). The returned values follow a probability distribution conditional on the realized values in previous calls.
See also
Notes
For time-dependent intensity
lam(t)and compounding random variabley(t)the result is approximate, mind running a first evaluation on a sequence of consecutive closely spaced time points in the region of interest.Attributes: rngRead-only access to the random number generator used by the stochasticity source.
sizeReturns the number of stored scalar values from previous evaluations, or 0 for sources without memory.
tReturns a copy of the time points at which source values have been stored from previous evaluations, as an array, or an empty array for sources without memory.
Methods
See ``source`` and ``true_source`` methods.