public final class PointShifts extends Object implements ScenarioPerturbation<ParameterizedData>, org.joda.beans.ImmutableBean, Serializable
Examples of parameterized data include curve, option volatilities and model parameters.
This class contains a set of shifts, each one associated with a different parameter in the data. Each shift has an associated key that is matched against the parameterized data. In order for this to work the parameterized data must have matching and unique parameter metadata.
When matching the shift to the parameterized data, either the identifier or label parameter may be used. A shift is not applied if there is no point on the parameterized data with a matching identifier.
ParameterMetadata.getIdentifier(),
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
PointShifts.Meta
The meta-bean for
PointShifts. |
| Modifier and Type | Method and Description |
|---|---|
MarketDataBox<ParameterizedData> |
applyTo(MarketDataBox<ParameterizedData> marketData,
ReferenceData refData) |
static PointShiftsBuilder |
builder(ShiftType shiftType)
Returns a new mutable builder for building instances of
ParameterizedDataPointShifts. |
boolean |
equals(Object obj) |
Class<ParameterizedData> |
getMarketDataType() |
ImmutableMap<Object,Integer> |
getNodeIndices()
Gets indices of each parameter, keyed by an object identifying the node.
|
int |
getScenarioCount() |
DoubleMatrix |
getShifts()
Gets the shift to apply to the rates.
|
ShiftType |
getShiftType()
Gets the type of shift applied to the parameters.
|
int |
hashCode() |
static PointShifts.Meta |
meta()
The meta-bean for
PointShifts. |
PointShifts.Meta |
metaBean() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitnonepublic static PointShiftsBuilder builder(ShiftType shiftType)
ParameterizedDataPointShifts.shiftType - the type of shift to apply to the ratesParameterizedDataPointShiftspublic MarketDataBox<ParameterizedData> applyTo(MarketDataBox<ParameterizedData> marketData, ReferenceData refData)
applyTo in interface ScenarioPerturbation<ParameterizedData>public int getScenarioCount()
getScenarioCount in interface ScenarioPerturbation<ParameterizedData>public Class<ParameterizedData> getMarketDataType()
getMarketDataType in interface ScenarioPerturbation<ParameterizedData>public static PointShifts.Meta meta()
PointShifts.public PointShifts.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic ShiftType getShiftType()
public DoubleMatrix getShifts()
There is one row in the matrix for each scenario and one column for each parameter in the data.
Node indices are found using nodeIndices.
public ImmutableMap<Object,Integer> getNodeIndices()
The key is typically the node identifier. The key may also be the node label.
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.