Expand description
Stochastic finance/economics kernels.
The legacy public helpers are convenience APIs. The seeded *_into variants
are the deterministic, caller-buffered kernels to prefer for tests, WASM, and
any future hot-path integration.
Enums§
Constants§
- DEFAULT_
MONTE_ CARLO_ SEED - Default seed for deterministic Monte Carlo callers that do not supply their own scenario seed.
Functions§
- run_
monte_ carlo_ var - Runs a Monte Carlo simulation to calculate the expected end value and the Value at Risk (VaR) at a 95% confidence interval.
- run_
monte_ carlo_ var_ seeded_ into - Runs a deterministic Monte Carlo VaR calculation into a caller-owned buffer.
- simulate_
gbm_ path - Simulates a single path of Geometric Brownian Motion (GBM) using the ambient random source. Kept for compatibility with existing CLI/WASM surfaces.
- simulate_
gbm_ path_ seeded - Deterministic single-path GBM simulation.
- simulate_
gbm_ steps_ into - Writes each GBM step price into
out. Returns the number of prices written.