Class RiskNeutralDensityCalculator
The interface of a single asset's risk-neutral terminal density: its density, its cumulative distribution and the distribution's inverse at a time.
public abstract class RiskNeutralDensityCalculator
- Inheritance
-
RiskNeutralDensityCalculator
- Derived
- Inherited Members
Remarks
Unsealed and abstract, as QuantLib's base: each density's calculator derives it. QuantLib's protected
InvCDFHelper, the inverse by Brent's method on the cumulative distribution, is internal here, for the
library's own calculators.
Constructors
RiskNeutralDensityCalculator()
protected RiskNeutralDensityCalculator()
Methods
Cdf(double, double)
The probability of a value below x.
public abstract double Cdf(double x, double t)
Parameters
Returns
- double
The cumulative probability.
InvCdf(double, double)
The value below which the probability is p.
public abstract double InvCdf(double p, double t)
Parameters
Returns
- double
The value.
Pdf(double, double)
The density at x.
public abstract double Pdf(double x, double t)
Parameters
Returns
- double
The density.