Class BinomialLRVanillaEngine
- Namespace
- NanoQL.PricingEngines
- Assembly
- NanoQL.dll
The binomial engine on the Leisen-Reimer tree: QuantLib-Python's BinomialLRVanillaEngine, QuantLib's
BinomialVanillaEngine<LeisenReimer>.
public static class BinomialLRVanillaEngine
- Inheritance
-
BinomialLRVanillaEngine
- Inherited Members
Methods
Calculate(VanillaOption, EvaluationContext, GeneralizedBlackScholesProcess, int)
Prices a vanilla option on the Leisen-Reimer tree.
public static OneAssetOptionResults Calculate(VanillaOption option, EvaluationContext context, GeneralizedBlackScholesProcess process, int timeSteps)
Parameters
optionVanillaOptionThe option, with a plain-vanilla payoff.
contextEvaluationContextThe evaluation context.
processGeneralizedBlackScholesProcessThe Black-Scholes process.
timeStepsintThe number of time steps, at least 2.
Returns
- OneAssetOptionResults
The results, as Calculate<TTree>(VanillaOption, EvaluationContext, GeneralizedBlackScholesProcess, int) gives them.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
timeStepsis below 2.- NanoQLException
The payoff isn't plain vanilla, or the option can't be priced.