Class BinomialJRVanillaEngine
- Namespace
- NanoQL.PricingEngines
- Assembly
- NanoQL.dll
The binomial engine on the Jarrow-Rudd tree: QuantLib-Python's BinomialJRVanillaEngine, QuantLib's
BinomialVanillaEngine<JarrowRudd>.
public static class BinomialJRVanillaEngine
- Inheritance
-
BinomialJRVanillaEngine
- Inherited Members
Methods
Calculate(VanillaOption, EvaluationContext, GeneralizedBlackScholesProcess, int)
Prices a vanilla option on the Jarrow-Rudd 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.