sdepy.cox_ingersoll_ross_process.source_dn¶
-
cox_ingersoll_ross_process.source_dn(dn=None, ptype=<class 'int'>, lam=1.0)¶ Setup a source of Poisson process increments, to be used as ‘dn’ during integration.
Parameters: - dn : source, or source subclass, or None
If an object complying with the
sourceprotocol, it is returned (ptypeandlamare ignored). If a source subclass, it is instantiated with the given parameters, and returned. If None, a new instance ofpoisson_sourceis returned, with the given parameters.- ptype, lam : see
poisson_sourcedocumentation
Returns: - An object complying with the
sourceprotocol, - instantiating the requested stochasticity source.
- The shape of source values is set to
wshape.
See also