@param derivative An EquityIndexOption, the OG-Analytics form of the derivative
@param marketData A StaticReplicationDataBundle, containing a BlackVolatilitySurface, forward equity and funding curves
@return The present value of the option
@param derivative An EquityOption, the OG-Analytics form of the derivative
@param marketData A StaticReplicationDataBundle, containing a BlackVolatilitySurface, forward equity and funding curves
@return The present value of the option
Calculates the present value of a variance swap using static replication
@param deriv The variance swap, not null
@param market Bundle containing market data, not null
@return The present value
Computes the present value of a bond security (without settlement amount payment).
@param bond The bond security.
@param curves The curve bundle.
@return The present value.
Compute the present value of a fixed coupon bond transaction.
@param bond The bond transaction.
@param curves The curve bundle.
@return The present value.
Computes the present value of future from the curves using the cheapest-to-deliver and computing the value as a forward.
@param future The future.
@param curves The yield curves. Should contain the credit and repo curves associated with the instrument.
@return The present value.
Compute the present value of a CMS cap/floor by replication in SABR framework. For floor the replication is between 0.0 and the strike. 0.0 is used as the rates are always >=0.0 in SABR.
@param cmsCapFloor The CMS cap/floor.
@param sabrData The SABR data bundle.
@return The present value.
Compute the present value of a CMS spread cap/floor in the binormal approach.
@param cmsSpread The CMS spread cap/floor.
@param sabrData The SABR data bundle.
@return The present value.
Computes the present value of a cap/floor in the Hull-White one factor model.
@param cap The cap/floor.
@param hwData The Hull-White parameters and the curves.
@return The present value.
Computes the present value of the cap/floor in the LMM. It is computed using a Black formula (on the shifted rate). The volatility is the LMM volatilities for the relevant period multiplied by the time dependent factor square mean. The method is used mainly for calibration purposes.
@param cap The cap. Should have the same underlying index as the model (same payment frequency).
@param lmmData The Model parameters.
@return The present value.
Computes the present value of a cash-settled European swaption in the SABR model with extrapolation to the right.
@param cap The cap/floor.
@param sabrData The SABR data. The SABR function need to be the Hagan function.
@return The present value.
Computes the present value of a cap/floor in the SABR model.
@param cap The cap/floor.
@param sabrData The SABR data bundle.
@return The present value.
Compute the present value of a CMS spread cap/floor in the binormal approach.
@param cmsSpread The CMS spread cap/floor.
@param sabrData The SABR data bundle.
@return The present value.
Computes the present value of the cap/floor in the LMM. It is computed using a Black formula (on the shifted rate). The volatility is the LMM volatilities for the relevant period multiplied by the time dependent factor square mean. The method is used mainly for calibration purposes.
@param cap The cap. Should have the same underlying index as the model (same payment frequency).
@param lmmData The LMM and multi-curves provider.
@return The present value.
Computes the present value of a cash-settled European swaption in the SABR model with extrapolation to the right.
@param swaption The swaption.
@param sabrData The SABR data.
@return The present value.
Computes the present value of a cash-settled European swaption in the SABR model.
@param swaption The swaption.
@param sabrData The SABR data.
@return The present value.
Computes the present value of a physical delivery European swaption in the SABR model with extrapolation to the right.
@param swaption The swaption.
@param sabrData The SABR data.
@return The present value.
Computes the present value of a physical delivery European swaption in the SABR model.
@param swaption The swaption.
@param sabrData The SABR data.
@return The present value.
Computes the present value in the G2++ two factors model by Monte-Carlo. Implementation note: The total number of paths is divided in blocks of maximum size BLOCK_SIZE=1000. The Monte Carlo is run on each block and the average of each block price is the total price.
@param instrument The swaption.
@param ccy The currency
@param dscName The discounting curve name.
@param g2Data The G2++ data (curves and G2++ parameters).
@return The present value.
Computes the present value in the Hull-White one factor model by Monte-Carlo. Implementation note: The total number of paths is divided in blocks of maximum size BLOCK_SIZE=1000. The Monte Carlo is run on each block and the average of each block price is the total price.
@param instrument The swaption.
@param ccy The currency
@param dscName The discounting curve name.
@param hwData The Hull-White data (curves and Hull-White parameters).
@return The present value.
Computes the present value in the G2++ two factors model by Monte-Carlo. Implementation note: The total number of paths is divided in blocks of maximum size BLOCK_SIZE=1000. The Monte Carlo is run on each block and the average of each block price is the total price.
@param instrument The swaption.
@param ccy The currency
@param g2Data The G2++ data (curves and G2++ parameters).
@return The present value.
Computes the present value in the Hull-White one factor model by Monte-Carlo. Implementation note: The total number of paths is divided in blocks of maximum size BLOCK_SIZE=1000. The Monte Carlo is run on each block and the average of each block price is the total price.
@param instrument The swaption.
@param ccy The currency.
@param hwData The Hull-White data (curves and Hull-White parameters).
@return The present value.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.