Class IborCapletFloorletVolatilityCalibrationResult
- java.lang.Object
-
- com.opengamma.strata.pricer.capfloor.IborCapletFloorletVolatilityCalibrationResult
-
- All Implemented Interfaces:
Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class IborCapletFloorletVolatilityCalibrationResult extends Object implements org.joda.beans.ImmutableBean, Serializable
Calibration result for Ibor caplet/floorlet volatilities.This stores caplet volatilities
IborCapletFloorletVolatilities
and chi square valuechiSquare
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IborCapletFloorletVolatilityCalibrationResult.Meta
The meta-bean forIborCapletFloorletVolatilityCalibrationResult
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
double
getChiSquare()
Gets the chi-square value.IborCapletFloorletVolatilities
getVolatilities()
Gets the caplet volatilities.int
hashCode()
static IborCapletFloorletVolatilityCalibrationResult.Meta
meta()
The meta-bean forIborCapletFloorletVolatilityCalibrationResult
.IborCapletFloorletVolatilityCalibrationResult.Meta
metaBean()
static IborCapletFloorletVolatilityCalibrationResult
ofLeastSquare(IborCapletFloorletVolatilities volatilities, double chiSquare)
Obtains an instance of least square result.static IborCapletFloorletVolatilityCalibrationResult
ofRootFind(IborCapletFloorletVolatilities volatilities)
Obtains an instance of root-finding result.String
toString()
-
-
-
Method Detail
-
ofLeastSquare
public static IborCapletFloorletVolatilityCalibrationResult ofLeastSquare(IborCapletFloorletVolatilities volatilities, double chiSquare)
Obtains an instance of least square result.- Parameters:
volatilities
- the caplet volatilitieschiSquare
- the chi-square value- Returns:
- the instance
-
ofRootFind
public static IborCapletFloorletVolatilityCalibrationResult ofRootFind(IborCapletFloorletVolatilities volatilities)
Obtains an instance of root-finding result.- Parameters:
volatilities
- the caplet volatilities- Returns:
- the instance
-
meta
public static IborCapletFloorletVolatilityCalibrationResult.Meta meta()
The meta-bean forIborCapletFloorletVolatilityCalibrationResult
.- Returns:
- the meta-bean, not null
-
metaBean
public IborCapletFloorletVolatilityCalibrationResult.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getVolatilities
public IborCapletFloorletVolatilities getVolatilities()
Gets the caplet volatilities.- Returns:
- the value of the property, not null
-
getChiSquare
public double getChiSquare()
Gets the chi-square value.The chi square is 0 if the volatilities are computed by root-finding. The chi square is generally non-zero if the volatilities are computed by least square method.
- Returns:
- the value of the property, not null
-
-