template class xf::fintech::HWAEngine¶
#include "hwa_engine.hpp"
Methods¶
init¶
void init ( DT a, DT sigma, DT times [LEN], DT rates [LEN] )
init create the hullwhite analytic model
a sigma times rates
optionPrice¶
DT optionPrice ( int type, DT t, DT T, DT S, DT K )
optionPrice calculate the option price
type t T S K P
capfloorPrice¶
DT capfloorPrice ( int type, DT start, DT end, DT freq, DT N, DT X )
CapFloorPrice calculate the cap/floor price.
type start end freq N X P