Class EquityFitDataVolSurface
java.lang.Object
com.illumon.modelfarm.fitterfarm.CoreFitData
com.illumon.modelfarm.fitterfarm.equity.EquityFitData
com.illumon.modelfarm.fitterfarm.equity.EquityFitDataOptionPrices
com.illumon.modelfarm.fitterfarm.equity.EquityFitDataVolSurface
- All Implemented Interfaces:
FitDataBase
,FitDataOptionChain
,FitDataOptionPrices
,FitDataRates
,FitDataUnderlying
,FitDataUnderlyingPrices
,FitDataVolSurface
,Serializable
public class EquityFitDataVolSurface extends EquityFitDataOptionPrices implements FitDataVolSurface, Serializable
A snapshot of market data needed to fit an equity option model. Option prices are provided as a vol surface.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description EquityFitDataVolSurface()
Create a new, empty data set.EquityFitDataVolSurface(EquityFitDataVolSurface data)
Copy the data. -
Method Summary
Modifier and Type Method Description DBDateTime[]
getVolSurfaceExpirations()
Gets an array of expirations associated with the vol surface.double[]
getVolSurfaceForwardErrors()
Gets the forward price errors associated with the expirations in the vol surface.double[]
getVolSurfaceForwardPrices()
Gets the forward prices associated with the expirations in the vol surface.double[][]
getVolSurfaceImpliedVolErrors()
Gets the implied vol errors of the vol surface.double[][]
getVolSurfaceImpliedVols()
Gets the implied vols of the vol surface.double[][]
getVolSurfaceStrikes()
Gets the strikes of the vol surface.double[]
getVolSurfaceUnderlyingPrices()
Gets the underlying mid market prices associated with the expirations in the vol surface.void
setVolSurfaceExpirations(DBDateTime[] volSurfaceExpirations)
Sets an array of expirations associated with the vol surface.void
setVolSurfaceForwardErrors(double[] volSurfaceForwardErrors)
Sets the forward price errors associated with the expirations in the vol surface.void
setVolSurfaceForwardPrices(double[] volSurfaceForwardPrices)
Sets the forward prices associated with the expirations in the vol surface.void
setVolSurfaceImpliedVolErrors(double[][] volSurfaceImpliedVolErrors)
Sets the implied vol errors of the vol surface.void
setVolSurfaceImpliedVols(double[][] volSurfaceImpliedVols)
Sets the implied vols of the vol surface.void
setVolSurfaceStrikes(double[][] volSurfaceStrikes)
Sets the strikes of the vol surface.void
setVolSurfaceUnderlyingPrices(double[] volSurfaceUnderlyingPrices)
Sets the underlying mid market prices associated with the expirations in the vol surface.String
toString()
protected String
toStringContents()
Methods inherited from class com.illumon.modelfarm.fitterfarm.equity.EquityFitDataOptionPrices
getOptionAskGaps, getOptionAsks, getOptionAskSizes, getOptionBidGaps, getOptionBids, getOptionBidSizes, setOptionAskGaps, setOptionAsks, setOptionAskSizes, setOptionBidGaps, setOptionBids, setOptionBidSizes
Methods inherited from class com.illumon.modelfarm.fitterfarm.equity.EquityFitData
getUnderlyingAsk, getUnderlyingAskGap, getUnderlyingAskSize, getUnderlyingBid, getUnderlyingBidGap, getUnderlyingBidSize, getUnderlyingLast, setUnderlyingAsk, setUnderlyingAskGap, setUnderlyingAskSize, setUnderlyingBid, setUnderlyingBidGap, setUnderlyingBidSize, setUnderlyingLast
Methods inherited from class com.illumon.modelfarm.fitterfarm.CoreFitData
clone2d, getCarryCurveDates, getCarryCurveErrors, getCarryCurveRates, getDivCashAmounts, getDivExDates, getDivProportionalAmounts, getFitGroup, getFitScope, getOptionExerciseTypes, getOptionExpirations, getOptionIds, getOptionPayoffTypes, getOptionRoots, getOptionSettlementTypes, getOptionStrikes, getOptionSyms, getTimestamp, getUnderlyingId, getUnderlyingSym, getUnderlyingType, getYieldCurveDates, getYieldCurveRates, setCarryCurveDates, setCarryCurveErrors, setCarryCurveRates, setDivCashAmounts, setDivExDates, setDivProportionalAmounts, setFitGroup, setOptionExerciseTypes, setOptionExpirations, setOptionIds, setOptionPayoffTypes, setOptionRoots, setOptionSettlementTypes, setOptionStrikes, setOptionSyms, setTimestamp, setUnderlyingId, setUnderlyingSym, setUnderlyingType, setYieldCurveDates, setYieldCurveRates
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.modelfarm.fitterfarm.FitDataOptionChain
getOptionExerciseTypes, getOptionExpirations, getOptionIds, getOptionPayoffTypes, getOptionRoots, getOptionSettlementTypes, getOptionStrikes, getOptionSyms
Methods inherited from interface com.illumon.modelfarm.fitterfarm.FitDataUnderlying
getTimestamp, getUnderlyingId, getUnderlyingSym, getUnderlyingType
Methods inherited from interface com.illumon.modelfarm.fitterfarm.FitDataUnderlyingPrices
getUnderlyingMid
-
Constructor Details
-
EquityFitDataVolSurface
public EquityFitDataVolSurface()Create a new, empty data set. -
EquityFitDataVolSurface
Copy the data.- Parameters:
data
- data to copy.
-
-
Method Details
-
getVolSurfaceUnderlyingPrices
public double[] getVolSurfaceUnderlyingPrices()Gets the underlying mid market prices associated with the expirations in the vol surface.- Returns:
- underlying mid market price associated with the expirations in the vol surface.
-
setVolSurfaceUnderlyingPrices
public void setVolSurfaceUnderlyingPrices(double[] volSurfaceUnderlyingPrices)Sets the underlying mid market prices associated with the expirations in the vol surface.- Parameters:
volSurfaceUnderlyingPrices
- underlying mid market prices associated with the expirations in the vol surface.
-
getVolSurfaceExpirations
Description copied from interface:FitDataVolSurface
Gets an array of expirations associated with the vol surface.- Specified by:
getVolSurfaceExpirations
in interfaceFitDataVolSurface
- Returns:
- array of expirations associated with the vol surface.
-
setVolSurfaceExpirations
Sets an array of expirations associated with the vol surface.- Parameters:
volSurfaceExpirations
- array of expirations associated with the vol surface.
-
getVolSurfaceForwardPrices
public double[] getVolSurfaceForwardPrices()Description copied from interface:FitDataVolSurface
Gets the forward prices associated with the expirations in the vol surface.- Specified by:
getVolSurfaceForwardPrices
in interfaceFitDataVolSurface
- Returns:
- forward prices associated with the expirations in the vol surface.
-
setVolSurfaceForwardPrices
public void setVolSurfaceForwardPrices(double[] volSurfaceForwardPrices)Sets the forward prices associated with the expirations in the vol surface.- Parameters:
volSurfaceForwardPrices
- forward prices associated with the expirations in the vol surface.
-
getVolSurfaceForwardErrors
public double[] getVolSurfaceForwardErrors()Description copied from interface:FitDataVolSurface
Gets the forward price errors associated with the expirations in the vol surface.- Specified by:
getVolSurfaceForwardErrors
in interfaceFitDataVolSurface
- Returns:
- forward price errors associated with the expirations in the vol surface.
-
setVolSurfaceForwardErrors
public void setVolSurfaceForwardErrors(double[] volSurfaceForwardErrors)Sets the forward price errors associated with the expirations in the vol surface.- Parameters:
volSurfaceForwardErrors
- forward price errors associated with the expirations in the vol surface.
-
getVolSurfaceStrikes
public double[][] getVolSurfaceStrikes()Description copied from interface:FitDataVolSurface
Gets the strikes of the vol surface. The first index corresponds to the expiration.- Specified by:
getVolSurfaceStrikes
in interfaceFitDataVolSurface
- Returns:
- strikes of the vol surface.
-
setVolSurfaceStrikes
public void setVolSurfaceStrikes(double[][] volSurfaceStrikes)Sets the strikes of the vol surface. The first index corresponds to the expiration.- Parameters:
volSurfaceStrikes
- strikes of the vol surface.
-
getVolSurfaceImpliedVols
public double[][] getVolSurfaceImpliedVols()Description copied from interface:FitDataVolSurface
Gets the implied vols of the vol surface. The first index corresponds to the expiration.- Specified by:
getVolSurfaceImpliedVols
in interfaceFitDataVolSurface
- Returns:
- implied vols of the vol surface.
-
setVolSurfaceImpliedVols
public void setVolSurfaceImpliedVols(double[][] volSurfaceImpliedVols)Sets the implied vols of the vol surface. The first index corresponds to the expiration.- Parameters:
volSurfaceImpliedVols
- implied vols of the vol surface.
-
getVolSurfaceImpliedVolErrors
public double[][] getVolSurfaceImpliedVolErrors()Description copied from interface:FitDataVolSurface
Gets the implied vol errors of the vol surface. The first index corresponds to the expiration.- Specified by:
getVolSurfaceImpliedVolErrors
in interfaceFitDataVolSurface
- Returns:
- implied vol errors of the vol surface.
-
setVolSurfaceImpliedVolErrors
public void setVolSurfaceImpliedVolErrors(double[][] volSurfaceImpliedVolErrors)Sets the implied vol errors of the vol surface. The first index corresponds to the expiration.- Parameters:
volSurfaceImpliedVolErrors
- implied vol errors of the vol surface.
-
toStringContents
- Overrides:
toStringContents
in classEquityFitDataOptionPrices
-
toString
- Overrides:
toString
in classEquityFitDataOptionPrices
-