public final class IsdaCompliantDiscountCurveCalibrator extends Object
A single discounting curve is calibrated for a specified currency.
The curve is defined using two or more nodes. Each node primarily defines enough information to produce a reference trade. Calibration involves pricing, and re-pricing, these trades to find the best fit using a root finder.
Once calibrated, the curves are then available for use. Each node in the curve definition becomes a parameter in the matching output curve.
| Modifier and Type | Field and Description |
|---|---|
static IsdaCompliantDiscountCurveCalibrator |
STANDARD
Default implementation.
|
| Modifier and Type | Method and Description |
|---|---|
IsdaCreditDiscountFactors |
calibrate(IsdaCreditCurveDefinition curveDefinition,
MarketData marketData,
ReferenceData refData)
Calibrates the ISDA compliant discount curve to the market data.
|
static IsdaCompliantDiscountCurveCalibrator |
of(double accuracy)
Obtains the curve calibrator with the accuracy of the root finder specified.
|
static IsdaCompliantDiscountCurveCalibrator |
standard()
Obtains the standard curve calibrator.
|
public static final IsdaCompliantDiscountCurveCalibrator STANDARD
public static IsdaCompliantDiscountCurveCalibrator standard()
The accuracy of the root finder is set to be its default, 1.0e-12;
public static IsdaCompliantDiscountCurveCalibrator of(double accuracy)
accuracy - the accuracypublic IsdaCreditDiscountFactors calibrate(IsdaCreditCurveDefinition curveDefinition, MarketData marketData, ReferenceData refData)
This creates the single discount curve for a specified currency.
The curve nodes in IsdaCreditCurveDefinition should be term deposit or fixed-for-Ibor swap,
and the number of nodes should be greater than 1.
curveDefinition - the curve definitionmarketData - the market datarefData - the reference dataCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.