Module net.finmath.lib
Class NotionalFromConstant
java.lang.Object
net.finmath.montecarlo.interestrate.products.components.NotionalFromConstant
- All Implemented Interfaces:
Notional
A constant (non-stochastic) notional.
- Version:
- 1.0
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionNotionalFromConstant(double notional)Creates a constant (non-stochastic) notional.NotionalFromConstant(double notional, String currency)Creates a constant (non-stochastic) notional. -
Method Summary
Modifier and TypeMethodDescriptionReturns the currency string of this notional.Calculates the notional at the end of a period, given a period.Calculates the notional at the start of a period, given a period.toString()
-
Constructor Details
-
NotionalFromConstant
Creates a constant (non-stochastic) notional.- Parameters:
notional- The constant notional value.currency- The currency.
-
NotionalFromConstant
public NotionalFromConstant(double notional)Creates a constant (non-stochastic) notional.- Parameters:
notional- The constant notional value.
-
-
Method Details
-
getCurrency
Description copied from interface:NotionalReturns the currency string of this notional.- Specified by:
getCurrencyin interfaceNotional- Returns:
- the currency
-
getNotionalAtPeriodEnd
public RandomVariable getNotionalAtPeriodEnd(AbstractPeriod period, TermStructureMonteCarloSimulationModel model)Description copied from interface:NotionalCalculates the notional at the end of a period, given a period. Example: The notional can be independent of the period (constant running notional) or depending on the period (accruing notional).- Specified by:
getNotionalAtPeriodEndin interfaceNotional- Parameters:
period- Period.model- The model against we are evaluation.- Returns:
- The notional for the given period as of period end.
-
getNotionalAtPeriodStart
public RandomVariable getNotionalAtPeriodStart(AbstractPeriod period, TermStructureMonteCarloSimulationModel model)Description copied from interface:NotionalCalculates the notional at the start of a period, given a period. Example: The notional can be independent of the period (constant running notional) or depending on the period (accruing notional).- Specified by:
getNotionalAtPeriodStartin interfaceNotional- Parameters:
period- Period.model- The model against we are evaluation.- Returns:
- The notional for the given period as of period start.
-
toString
-