Class BinomialEQPConvertibleEngine
- Namespace
- NanoQL.PricingEngines
- Assembly
- NanoQL.dll
The binomial convertible engine on the additive equal-probabilities tree: QuantLib-Python's BinomialEQPConvertibleEngine, QuantLib's
BinomialConvertibleEngine<AdditiveEQPBinomialTree>.
public static class BinomialEQPConvertibleEngine
- Inheritance
-
BinomialEQPConvertibleEngine
- Inherited Members
Methods
Calculate(ConvertibleBond, EvaluationContext, GeneralizedBlackScholesProcess, int, double, ImmutableArray<Dividend>)
Prices a convertible bond on the additive equal-probabilities tree.
public static BondResults Calculate(ConvertibleBond bond, EvaluationContext context, GeneralizedBlackScholesProcess process, int timeSteps, double creditSpread, ImmutableArray<Dividend> dividends = default)
Parameters
bondConvertibleBondThe convertible bond.
contextEvaluationContextThe evaluation context.
processGeneralizedBlackScholesProcessThe Black-Scholes process of the underlying.
timeStepsintThe number of time steps, positive.
creditSpreaddoubleThe credit spread.
dividendsImmutableArray<Dividend>The underlying's dividends; none by default.
Returns
- BondResults
The results, as Calculate<TTree>(ConvertibleBond, EvaluationContext, GeneralizedBlackScholesProcess, int, double, ImmutableArray<Dividend>) gives them.
Exceptions
- ArgumentNullException
The bond, the context or the process is null.
- ArgumentOutOfRangeException
timeStepsis negative.- ArgumentException
timeStepsis 0, or a dividend is null.- NanoQLException
The bond can't be priced.