Skip to main content

telegraph_walk

Function telegraph_walk 

Source
pub fn telegraph_walk<X, Y>(
    params: &WalkParams<X, Y>,
) -> Result<WalkPath, SimulationError>
Expand description

Built-in Telegraph (two-state regime switching) walk kernel: simulates the price path together with the volatility path that drove it.

This is the shared implementation behind the default WalkTypeAble::telegraph and WalkTypeAble::telegraph_with_vol methods, exposed publicly so custom walkers overriding one of them can compose or wrap the built-in dynamics instead of reimplementing them.

ยงErrors

Same as WalkTypeAble::telegraph.