Module net.finmath.lib
Interface TermStructureMonteCarloSimulationModel
-
- All Superinterfaces:
IndependentModelParameterProvider
,Model
,MonteCarloSimulationModel
- All Known Subinterfaces:
HybridAssetLIBORModelMonteCarloSimulation
,LIBORModelMonteCarloSimulationModel
- All Known Implementing Classes:
HybridAssetLIBORModelMonteCarloSimulationFromModels
,LIBORMonteCarloSimulationFromLIBORModel
,LIBORMonteCarloSimulationFromTermStructureModel
,TermStructureMonteCarloSimulationFromTermStructureModel
public interface TermStructureMonteCarloSimulationModel extends MonteCarloSimulationModel, IndependentModelParameterProvider
- Version:
- 1.0
- Author:
- Christian Fries
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default BrownianMotion
getBrownianMotion()
Returns the Brownian motion used to simulate the curve.Object
getCloneWithModifiedSeed(int seed)
Deprecated.RandomVariable
getForwardRate(double time, double periodStart, double periodEnd)
Return the forward rate for a given simulation time and a given period start and period end.default RandomVariable
getForwardRate(LocalDateTime date, LocalDateTime periodStartDate, LocalDateTime periodEndDate)
Return the forward rate for a given simulation time and a given period start and period end.default RandomVariable
getLIBOR(double time, double periodStart, double periodEnd)
Return the forward rate for a given simulation time and a given period start and period end.default RandomVariable
getLIBOR(LocalDateTime date, LocalDateTime periodStartDate, LocalDateTime periodEndDate)
Return the forward rate for a given simulation time and a given period start and period end.TermStructureModel
getModel()
Returns the underlying model.default int
getNumberOfFactors()
RandomVariable
getNumeraire(double time)
Return the numeraire at a given time.default RandomVariable
getNumeraire(LocalDateTime date)
Return the numeraire at a given time.MonteCarloProcess
getProcess()
-
Methods inherited from interface net.finmath.montecarlo.automaticdifferentiation.IndependentModelParameterProvider
getModelParameters
-
Methods inherited from interface net.finmath.montecarlo.MonteCarloSimulationModel
getCloneWithModifiedData, getMonteCarloWeights, getMonteCarloWeights, getNumberOfPaths, getRandomVariableForConstant, getReferenceDate, getTime, getTimeDiscretization, getTimeIndex
-
-
-
-
Method Detail
-
getForwardRate
default RandomVariable getForwardRate(LocalDateTime date, LocalDateTime periodStartDate, LocalDateTime periodEndDate) throws CalculationException
Return the forward rate for a given simulation time and a given period start and period end.- Parameters:
date
- Simulation timeperiodStartDate
- Start time of periodperiodEndDate
- End time of period- Returns:
- The forward rate as a random variable as seen on simulation time for the specified period.
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-
getForwardRate
RandomVariable getForwardRate(double time, double periodStart, double periodEnd) throws CalculationException
Return the forward rate for a given simulation time and a given period start and period end.- Parameters:
time
- Simulation timeperiodStart
- Start time of periodperiodEnd
- End time of period- Returns:
- The forward rate as a random variable as seen on simulation time for the specified period.
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-
getNumeraire
default RandomVariable getNumeraire(LocalDateTime date) throws CalculationException
Return the numeraire at a given time.- Parameters:
date
- Time at which the process should be observed- Returns:
- The numeraire at the specified time as
RandomVariableFromDoubleArray
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-
getNumeraire
RandomVariable getNumeraire(double time) throws CalculationException
Return the numeraire at a given time.- Parameters:
time
- Time at which the process should be observed- Returns:
- The numeraire at the specified time as
RandomVariableFromDoubleArray
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-
getLIBOR
default RandomVariable getLIBOR(LocalDateTime date, LocalDateTime periodStartDate, LocalDateTime periodEndDate) throws CalculationException
Return the forward rate for a given simulation time and a given period start and period end.- Parameters:
date
- Simulation timeperiodStartDate
- Start time of periodperiodEndDate
- End time of period- Returns:
- The forward rate as a random variable as seen on simulation time for the specified period.
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-
getLIBOR
default RandomVariable getLIBOR(double time, double periodStart, double periodEnd) throws CalculationException
Return the forward rate for a given simulation time and a given period start and period end.- Parameters:
time
- Simulation timeperiodStart
- Start time of periodperiodEnd
- End time of period- Returns:
- The forward rate as a random variable as seen on simulation time for the specified period.
- Throws:
CalculationException
- Thrown if the valuation fails, specific cause may be available via thecause()
method.
-
getModel
TermStructureModel getModel()
Returns the underlying model. The model specifies the measure, the initial value, the drift, the factor loadings (covariance model), etc.- Returns:
- The underlying model
-
getProcess
MonteCarloProcess getProcess()
- Returns:
- The implementation of the process
-
getNumberOfFactors
default int getNumberOfFactors()
- Returns:
- Returns the numberOfFactors.
-
getBrownianMotion
default BrownianMotion getBrownianMotion()
Returns the Brownian motion used to simulate the curve.- Returns:
- The Brownian motion used to simulate the curve.
-
getCloneWithModifiedSeed
@Deprecated Object getCloneWithModifiedSeed(int seed)
Deprecated.Return a clone of this model with a modified Brownian motion using a different seed.- Parameters:
seed
- The seed- Returns:
- Clone of this object, but having a different seed.
-
-