public class SwaprateCovarianceAnalyticApproximation extends AbstractMonteCarloProduct
| Constructor and Description |
|---|
SwaprateCovarianceAnalyticApproximation(double[] swapTenor1,
double[] swapTenor2)
Create the product implementing the analytic approximation of a swap rate covariance in a forward rate model.
|
| Modifier and Type | Method and Description |
|---|---|
RandomVariableInterface |
getValue(double evaluationTime,
LIBORMarketModel model)
Calculates the approximated integrated instantaneous covariance of two swap rates,
using the approximation d log(S(t))/d log(L(t)) = d log(S(0))/d log(L(0)).
|
RandomVariableInterface |
getValue(double evaluationTime,
MonteCarloSimulationInterface model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
getCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic SwaprateCovarianceAnalyticApproximation(double[] swapTenor1,
double[] swapTenor2)
swapTenor1 - The swap tenor of the first rate in doubles.swapTenor2 - The swap tenor of the second rate in doubles.public RandomVariableInterface getValue(double evaluationTime, MonteCarloSimulationInterface model) throws CalculationException
AbstractMonteCarloProductgetValue in class AbstractMonteCarloProductevaluationTime - The time on which this products value should be observed.model - The model used to price the product.CalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.public RandomVariableInterface getValue(double evaluationTime, LIBORMarketModel model) throws CalculationException
evaluationTime - The evaluation time.model - A model implementing the LIBORMarketModelCalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.Copyright © 2017. All rights reserved.