Heston model: analytic European call and QE Monte Carlo.
Definition heston.hpp:9
McResult call_qe_mc(const McParams &p)
Definition heston.cpp:129
double implied_vol_call(const MarketParams &mkt, const Params &h)
Black–Scholes implied volatility implied by the Heston analytic call price.
Definition heston.cpp:124
std::complex< double > characteristic_function(double u, const MarketParams &mkt, const Params &h)
Risk-neutral characteristic function φ(u) = E[e^{iu ln S_T}].
Definition heston.cpp:120
double call_analytic(const MarketParams &mkt, const Params &h)
Definition heston.cpp:101
double put_analytic(const MarketParams &mkt, const Params &h)
Definition heston.cpp:115
Mode
RNG mode selection: traditional PRNG or deterministic counter-based.
Definition rng.hpp:13
@ Counter
Counter-based, reproducible across threading schedules.
double time
Definition heston.hpp:24
double rate
Definition heston.hpp:22
double spot
Definition heston.hpp:20
double strike
Definition heston.hpp:21
double dividend
Definition heston.hpp:23
bool antithetic
Definition heston.hpp:50
Scheme scheme
Definition heston.hpp:53
int num_steps
Definition heston.hpp:49
Scheme
Definition heston.hpp:52
quant::rng::Mode rng
Definition heston.hpp:51
MarketParams mkt
Definition heston.hpp:45
Params h
Definition heston.hpp:46
std::uint64_t seed
Definition heston.hpp:48
std::uint64_t num_paths
Definition heston.hpp:47
double price
Definition heston.hpp:40
double std_error
Definition heston.hpp:41
double kappa
Definition heston.hpp:12
double v0
Definition heston.hpp:16
double rho
Definition heston.hpp:15
double sigma
Definition heston.hpp:14
double theta
Definition heston.hpp:13