Auto-generated utility functions


For each newly defined diffusion DiffusionProcess the package auto-generates some utility functions. They are not exported, but can be called by accessing through DiffusionDefinition module. These are:

Base.eltype — Method
Base.eltype(::DiffusionProcess{T}) where T = T

Return the datatype that each coordinate of the stochastic process is stored in.

source
Base.zero — Function
Base.zero(K::Type, D, ::Val)

If K is a mutable type, then create zeros of dimension D and entries with types eltype(K). Otherwise, calls regular zero(K).

source
Base.zero — Method
Base.zero(P::DiffusionProcess)

Instantiate a zero element that can represent a state of a Brownian motion driving a diffusion process.

source
Base.zero — Method
Base.zero(P::DiffusionProcess)

Instantiate a zero element that can represent a state of a diffusion.

source
DiffusionDefinition.const_parameters — Method
const_parameters(P::DiffusionProcess)

Return a tuple of pairs of parameter_name => parameter_value. Return only those parameteres that are considered to be constant.

source
DiffusionDefinition.end_point_info — Method
end_point_info(P::DiffusionProcess)

Return information about the end-point (works only if some information of this kind has been passed at the time of defining a struct) TODO improve

source
DiffusionDefinition.end_point_info_names — Method
end_point_info_names(P::DiffusionProcess)

Return names of information pieces about the end-point (works only if some information of this kind has been passed at the time of defining a struct) TODO improve

source
DiffusionDefinition.nonhypo_σ — Method
nonhypo_σ((t,i)::IndexedTime, x, P::DiffusionProcess)

Return a sub-matrix of the full volatility matrix σ that consists of non-zero rows of σ.

source
DiffusionDefinition.var_parameters — Method
var_parameters(P::DiffusionProcess)

Return a tuple of pairs of parameter_name => parameter_value. Return only those parameteres that are considered to be variable.

source