public class SingleFactorStateEvolver extends java.lang.Object implements PointStateEvolver
| Constructor and Description |
|---|
SingleFactorStateEvolver(FundingLabel lslFunding,
double dblSigma,
double dblA,
R1ToR1 auIFRInitial,
UnivariateSequenceGenerator usg)
SingleFactorStateEvolver Constructor
|
| Modifier and Type | Method and Description |
|---|---|
double |
a()
Retrieve A
|
double |
alpha(int iSpotDate,
int iViewDate)
Calculate the Alpha
|
LSQMPointUpdate |
evolve(int iSpotDate,
int iViewDate,
int iSpotTimeIncrement,
LSQMPointUpdate lsqmPrev)
Evolve the Latent State and return the LSQM Point Update
|
TrinomialTreeTransitionMetrics |
evolveTrinomialTree(int iSpotDate,
int iInitialDate,
int iTerminalDate,
TrinomialTreeNodeMetrics hwnmInitial)
Generate the Metrics associated with the Transition that results from using a Trinomial Tree Using the
Starting Node Metrics
|
TrinomialTreeSequenceMetrics |
evolveTrinomialTreeSequence(int iSpotDate,
int iDayIncrement,
int iNumIncrement)
Evolve the Trinomial Tree Sequence
|
boolean |
evolveTrinomialTreeSequence(int iSpotDate,
int iInitialDate,
int iDayIncrement,
int iNumIncrement,
TrinomialTreeNodeMetrics hwnm,
TrinomialTreeSequenceMetrics hwsm)
Evolve the Trinomial Tree Sequence
|
FundingLabel |
fundingLabel()
Retrieve the Funding Label
|
R1ToR1 |
ifrInitialTermStructure()
Retrieve the Initial Instantaneous Forward Rate Term Structure
|
UnivariateSequenceGenerator |
rsg()
Retrieve the Random Sequence Generator
|
double |
shortRateIncrement(int iSpotDate,
int iViewDate,
double dblShortRate,
int iViewTimeIncrement)
Calculate the Short Rate Increment
|
double |
sigma()
Retrieve Sigma
|
double |
theta(int iSpotDate,
int iViewDate)
Calculate the Theta
|
public SingleFactorStateEvolver(FundingLabel lslFunding, double dblSigma, double dblA, R1ToR1 auIFRInitial, UnivariateSequenceGenerator usg) throws java.lang.Exception
lslFunding - The Funding Latent State LabeldblSigma - SigmadblA - AauIFRInitial - The Initial Instantaneous Forward Rate Term Structureusg - Univariate Random Sequence Generatorjava.lang.Exception - Thrown if the Inputs are Invalidpublic FundingLabel fundingLabel()
public double sigma()
public double a()
public R1ToR1 ifrInitialTermStructure()
public UnivariateSequenceGenerator rsg()
public double alpha(int iSpotDate,
int iViewDate)
throws java.lang.Exception
iSpotDate - The Spot DateiViewDate - The View Datejava.lang.Exception - Thrown if Alpha cannot be computedpublic double theta(int iSpotDate,
int iViewDate)
throws java.lang.Exception
iSpotDate - The Spot DateiViewDate - The View Datejava.lang.Exception - Thrown if Theta cannot be computedpublic double shortRateIncrement(int iSpotDate,
int iViewDate,
double dblShortRate,
int iViewTimeIncrement)
throws java.lang.Exception
iSpotDate - The Spot DateiViewDate - The View DatedblShortRate - The Short RateiViewTimeIncrement - The View Time Incrementjava.lang.Exception - Thrown if the Short Rate cannot be computedpublic LSQMPointUpdate evolve(int iSpotDate, int iViewDate, int iSpotTimeIncrement, LSQMPointUpdate lsqmPrev)
PointStateEvolverevolve in interface PointStateEvolveriSpotDate - The Spot DateiViewDate - The View DateiSpotTimeIncrement - The Spot Time IncrementlsqmPrev - The Previous LSQM Point Updatepublic TrinomialTreeTransitionMetrics evolveTrinomialTree(int iSpotDate, int iInitialDate, int iTerminalDate, TrinomialTreeNodeMetrics hwnmInitial)
iSpotDate - The Spot/Epoch DateiInitialDate - The Initial DateiTerminalDate - The Terminal DatehwnmInitial - The Initial Node Metricspublic boolean evolveTrinomialTreeSequence(int iSpotDate,
int iInitialDate,
int iDayIncrement,
int iNumIncrement,
TrinomialTreeNodeMetrics hwnm,
TrinomialTreeSequenceMetrics hwsm)
iSpotDate - The Spot DateiInitialDate - The Initial DateiDayIncrement - The Day IncrementiNumIncrement - Number of Times to Incrementhwnm - Starting Node Metricshwsm - The Sequence Metricspublic TrinomialTreeSequenceMetrics evolveTrinomialTreeSequence(int iSpotDate, int iDayIncrement, int iNumIncrement)
iSpotDate - The Spot DateiDayIncrement - The Day IncrementiNumIncrement - Number of Times to Increment