|
WebCab Bonds v2.01 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--webcab.lib.finance.pricing.models.StochasticDifferentialModel
|
+--webcab.lib.finance.pricing.core.models.MarkovModel
|
+--webcab.lib.finance.pricing.core.models.SemimartingaleMarkovModel
|
+--webcab.lib.finance.pricing.models.rate.BlackKarasinski
Bkack&Karasinski is a one factor stochastic spot rate model. The spot rate process is a semimartingale. The stochastic differential equation is:
d(log(r)) = (phi(t) - a(t) * log(r)) * dt + sigma(t) * dW
The model can be fitted.
| Constructor Summary | |
BlackKarasinski(String name,
Function phi,
Function a,
Function sigma,
double initialRate)
Creates a new BlackDermanToy instance. |
|
| Method Summary | |
double |
evaluateCoef(int nProcess,
int nCoef,
double[] x)
|
int[] |
getCategoriesForExternalReferences()
|
double[][] |
getCorrelationMatrix()
|
int |
getExternal()
|
String[] |
getExternalReferences(Context context)
|
double[] |
getExternalVariables(Context context)
|
Context |
getInitialContext()
|
int[] |
getNFactors()
|
int |
getNumeraire()
|
int |
getNVariables()
|
int |
getTraded()
|
StochasticDifferentialModel |
getUpdatedModel(Context context,
double t)
Sets the initial values of the models' variables to the ones given as parameters. |
| Methods inherited from class webcab.lib.finance.pricing.core.models.MarkovModel |
dV_MarkovModel, dV |
| Methods inherited from class webcab.lib.finance.pricing.models.StochasticDifferentialModel |
compoundModel, compoundModel, compoundModel, compoundModel, compoundModel, compoundModel, dV_StochasticDifferentialModel, getCholeskyMatrix, getContext, getStartVariableForContext, getSuperModel, getTotalFactors, getVariables, seekRoot, seekUpwards, setCholeskyMatrix, setSuperModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BlackKarasinski(String name,
Function phi,
Function a,
Function sigma,
double initialRate)
throws InvalidParametersException
BlackDermanToy instance.
name - the name of the spot rate context producedphi - a function of one variable (some class implementing the Function interface).sigma - a function of one variable (a class implementing the Function interface).initialRate - the initial value of the spot rate
InvalidParametersException| Method Detail |
public int[] getNFactors()
getNFactors in class StochasticDifferentialModelpublic int getNVariables()
getNVariables in class StochasticDifferentialModelpublic int getNumeraire()
getNumeraire in class StochasticDifferentialModelpublic int getTraded()
getTraded in class SemimartingaleMarkovModelpublic int getExternal()
getExternal in class SemimartingaleMarkovModelpublic double[] getExternalVariables(Context context)
getExternalVariables in class SemimartingaleMarkovModelpublic String[] getExternalReferences(Context context)
getExternalReferences in class SemimartingaleMarkovModelpublic int[] getCategoriesForExternalReferences()
getCategoriesForExternalReferences in class SemimartingaleMarkovModelpublic Context getInitialContext()
getInitialContext in class StochasticDifferentialModelpublic double[][] getCorrelationMatrix()
getCorrelationMatrix in class StochasticDifferentialModel
public double evaluateCoef(int nProcess,
int nCoef,
double[] x)
throws BondsException
evaluateCoef in class SemimartingaleMarkovModelBondsException
public StochasticDifferentialModel getUpdatedModel(Context context,
double t)
throws BondsException
StochasticDifferentialModel
getUpdatedModel in class StochasticDifferentialModelcontext - the context which will be the new initial context of the modelt - the initial moment for the model
BondsException
|
WebCab Bonds v2.01 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||