public class PerformanceIndex extends AbstractIndex
executor| Constructor and Description |
|---|
PerformanceIndex(AbstractProductComponent numeratorIndex,
AbstractProductComponent denominatorIndex)
Create a performance index being numeratorIndex(t) / denominatorIndex(t)
|
| Modifier and Type | Method and Description |
|---|---|
AbstractProductComponent |
getDenominatorIndex()
Returns the denominator index.
|
AbstractProductComponent |
getNumeratorIndex()
Returns the numerator index.
|
RandomVariableInterface |
getValue(double evaluationTime,
LIBORModelMonteCarloSimulationInterface model)
This method returns the value random variable of the product within the specified model, evaluated at a given evalutationTime.
|
Set<String> |
queryUnderlyings()
Returns a set of underlying names referenced by this product component (i.e., required for valuation) or null if none.
|
getNamegetValuesgetFactorDrift, getValue, getValueForModifiedDatagetCurrency, getValue, getValue, getValues, getValues, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, getValuesForModifiedData, toStringpublic PerformanceIndex(AbstractProductComponent numeratorIndex, AbstractProductComponent denominatorIndex)
numeratorIndex - First index.denominatorIndex - Second index.public RandomVariableInterface getValue(double evaluationTime, LIBORModelMonteCarloSimulationInterface model) throws CalculationException
AbstractLIBORMonteCarloProductgetValue in class AbstractIndexevaluationTime - 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 AbstractProductComponent getNumeratorIndex()
public AbstractProductComponent getDenominatorIndex()
public Set<String> queryUnderlyings()
AbstractProductComponentqueryUnderlyings in class AbstractProductComponentCopyright © 2017. All rights reserved.