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 |
|---|---|
RandomVariable |
getValue(double evaluationTime,
LIBORMarketModelFromCovarianceModel 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)).
|
RandomVariable |
getValue(double evaluationTime,
MonteCarloSimulationModel 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, 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 RandomVariable getValue(double evaluationTime, MonteCarloSimulationModel model) throws CalculationException
MonteCarloProductgetValue in interface MonteCarloProductgetValue 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 RandomVariable getValue(double evaluationTime, LIBORMarketModelFromCovarianceModel model) throws CalculationException
evaluationTime - The evaluation time.model - A model implementing the LIBORMarketModelFromCovarianceModelCalculationException - Thrown if the valuation fails, specific cause may be available via the cause() method.Copyright © 2019. All rights reserved.