public class PortfolioMonteCarloProduct extends AbstractMonteCarloProduct
| Constructor and Description |
|---|
PortfolioMonteCarloProduct(AbstractMonteCarloProduct[] products)
Create a portfolio of products, each product being of AbstractMonteCarloProduct type.
|
PortfolioMonteCarloProduct(AbstractMonteCarloProduct[] products,
double[] weights)
Create a portfolio of products, each product being of AbstractMonteCarloProduct type
and weighted with a given weight.
|
| Modifier and Type | Method and Description |
|---|---|
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 PortfolioMonteCarloProduct(AbstractMonteCarloProduct[] products)
products - An array of products.public PortfolioMonteCarloProduct(AbstractMonteCarloProduct[] products, double[] weights)
products - An array of products.weights - An array of weights.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.Copyright © 2017. All rights reserved.