This class implements the Closed Form Garman Kohlhagen model.
The parameter passed to the constructor controls the size of the underlying buffers that will be allocated. This prameter therefore controls the maximum number of assets that can be processed per call to run()
It is intended that the user will populate the input buffers with appropriate asset data prior to calling run() When run completes, the calculated output data will be available in the relevant output buffers.
class CFGarmanKohlhagen: public xf::fintech::CFBlackScholes // fields KDataType* domesticRate KDataType* foreignRate
int run ( OptionType optionType, unsigned int numAssets )
This method is used to begin processing the asset data that is in the input buffers. If this function returns successfully, calculated results are available in the output buffers.
|optionType||The option type of ALL the assets data|
|numAssets||The number of assets to process.|