public class MultiFactorVolatility
extends java.lang.Object
Constructor and Description |
---|
MultiFactorVolatility(MarketSurface[] aMSVolatility,
PrincipalFactorSequenceGenerator pfsg)
MultiFactorVolatility Constructor
|
Modifier and Type | Method and Description |
---|---|
double[] |
factorPointVolatility(int iXDate,
int iYDate)
Compute the Array of Factor Point Volatilities
|
double |
factorPointVolatility(int iFactorIndex,
int iXDate,
int iYDate)
Compute the Factor Point Volatility
|
PrincipalFactorSequenceGenerator |
msg()
Retrieve the Principal Factor Sequence Generator
|
double |
pointVolatilityModulus(int iXDate,
int iYDate)
Compute the Point Volatility Modulus
|
double |
pointVolatilityModulusDerivative(int iXDate,
int iYDate,
int iOrder,
boolean bTerminal)
Compute the Point Volatility Modulus Derivative
|
double |
volatilityIntegral(int iFactorIndex,
int iXDate,
int iYDate)
Compute the Factor Volatility Integral
|
MarketSurface[] |
volatilitySurface()
Retrieve the Array of Volatility Surfaces
|
double |
weightedFactorPointVolatility(int iFactorIndex,
int iXDate,
int iYDate)
Compute the Weighted Factor Point Volatility
|
R1ToR1 |
xDateVolatilityFunction(int iFactorIndex,
int iXDate)
Retrieve the Factor-Specific Univariate Volatility Function for the Specified Date
|
public MultiFactorVolatility(MarketSurface[] aMSVolatility, PrincipalFactorSequenceGenerator pfsg) throws java.lang.Exception
aMSVolatility
- Array of the Multi-Factor Volatility Surfacespfsg
- Principal Factor Sequence Generatorjava.lang.Exception
- Thrown if Inputs are Invalidpublic MarketSurface[] volatilitySurface()
public PrincipalFactorSequenceGenerator msg()
public R1ToR1 xDateVolatilityFunction(int iFactorIndex, int iXDate)
iFactorIndex
- The Factor IndexiXDate
- The X Datepublic double volatilityIntegral(int iFactorIndex, int iXDate, int iYDate) throws java.lang.Exception
iFactorIndex
- The Factor IndexiXDate
- The X DateiYDate
- The Y Datejava.lang.Exception
- Thrown if the Factor Volatility Integral cannot be computedpublic double factorPointVolatility(int iFactorIndex, int iXDate, int iYDate) throws java.lang.Exception
iFactorIndex
- The Factor IndexiXDate
- The X DateiYDate
- The Y Datejava.lang.Exception
- Thrown if the Factor Point Volatility cannot be computedpublic double[] factorPointVolatility(int iXDate, int iYDate)
iXDate
- The X DateiYDate
- The Y Datepublic double weightedFactorPointVolatility(int iFactorIndex, int iXDate, int iYDate) throws java.lang.Exception
iFactorIndex
- The Factor IndexiXDate
- The X DateiYDate
- The Y Datejava.lang.Exception
- Thrown if the Weighted Factor Point Volatility cannot be computedpublic double pointVolatilityModulus(int iXDate, int iYDate) throws java.lang.Exception
iXDate
- The X DateiYDate
- The Y Datejava.lang.Exception
- Thrown if the Point Volatility Modulus cannot be computedpublic double pointVolatilityModulusDerivative(int iXDate, int iYDate, int iOrder, boolean bTerminal) throws java.lang.Exception
iXDate
- The X DateiYDate
- The Y DateiOrder
- The Derivative OrderbTerminal
- TRUE - Derivative off of the Y Date; FALSE - Derivative off of the X Datejava.lang.Exception
- Thrown if the Point Volatility Modulus Derivative cannot be computed