public class SimpleSwap extends AbstractLIBORMonteCarloProduct
| Constructor and Description |
|---|
SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates)
Deprecated.
|
SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
boolean isPayFix,
double notional)
Create a swap.
|
SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
boolean isPayFix,
double[] notional)
Create a swap.
|
SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
double notional)
Create a swap.
|
SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
double[] notional)
Create a swap.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getFixingDates() |
double[] |
getNotional() |
double[] |
getPaymentDates() |
double[] |
getPeriodLengths() |
double |
getStartTime() |
double[] |
getSwapRates() |
RandomVariable |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationModel model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
String |
toString() |
getFactorDrift, getValue, getValueForModifiedData, getValuesgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCurrency, getValue, getValue, getValues, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedDatapublic SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
boolean isPayFix,
double[] notional)
fixingDates - Vector of fixing datespaymentDates - Vector of payment dates (must have same length as fixing dates)swaprates - Vector of strikes (must have same length as fixing dates)isPayFix - If true, the swap is receive float - pay fix, otherwise its receive fix - pay float.notional - The notional as a vector for all periodspublic SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
boolean isPayFix,
double notional)
fixingDates - Vector of fixing datespaymentDates - Vector of payment dates (must have same length as fixing dates)swaprates - Vector of strikes (must have same length as fixing dates)isPayFix - If true, the swap is receive float - pay fix, otherwise its receive fix - pay float.notional - The constant notionalpublic SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
double notional)
fixingDates - Vector of fixing datespaymentDates - Vector of payment dates (must have same length as fixing dates)swaprates - Vector of strikes (must have same length as fixing dates)notional - The constant notionalpublic SimpleSwap(double[] fixingDates,
double[] paymentDates,
double[] swaprates,
double[] notional)
fixingDates - Vector of fixing datespaymentDates - Vector of payment dates (must have same length as fixing dates)swaprates - Vector of strikes (must have same length as fixing dates)notional - The notional as a vector for all periods@Deprecated public SimpleSwap(double[] fixingDates, double[] paymentDates, double[] swaprates)
fixingDates - Vector of fixing datespaymentDates - Vector of payment dates (must have same length as fixing dates)swaprates - Vector of strikes (must have same length as fixing dates)public RandomVariable getValue(double evaluationTime, LIBORModelMonteCarloSimulationModel model) throws CalculationException
getValue in interface TermStructureMonteCarloProductgetValue in class AbstractLIBORMonteCarloProductevaluationTime - 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 String toString()
toString in class AbstractMonteCarloProductpublic double getStartTime()
public double[] getFixingDates()
public double[] getNotional()
public double[] getSwapRates()
public double[] getPaymentDates()
public double[] getPeriodLengths()
Copyright © 2019. All rights reserved.