public final class SeasonalityDefinition extends Object implements org.joda.beans.ImmutableBean, Serializable
The seasonality is describe by a adjustment type and the month on month adjustments.
The adjustment type is usually ShiftType.SCALED (multiplicative) or ShiftType.ABSOLUTE (additive).
The month on month adjustment is an array of length 12 with the first element being the
adjustment from January to February, the second element being the adjustment from February to March,
and so on to the 12th element being the adjustment from December to January.
| Modifier and Type | Class and Description |
|---|---|
static class |
SeasonalityDefinition.Meta
The meta-bean for
SeasonalityDefinition. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ShiftType |
getAdjustmentType()
Gets the shift type applied to the unadjusted value and the adjustment.
|
DoubleArray |
getSeasonalityMonthOnMonth()
Gets the month on month adjustment.
|
int |
hashCode() |
static SeasonalityDefinition.Meta |
meta()
The meta-bean for
SeasonalityDefinition. |
SeasonalityDefinition.Meta |
metaBean() |
static SeasonalityDefinition |
of(DoubleArray seasonalityMonthOnMonth,
ShiftType adjustmentType)
Obtains an instance of the seasonality.
|
String |
toString() |
public static SeasonalityDefinition of(DoubleArray seasonalityMonthOnMonth, ShiftType adjustmentType)
seasonalityMonthOnMonth - the month-on-month seasonalityadjustmentType - the adjustment typepublic static SeasonalityDefinition.Meta meta()
SeasonalityDefinition.public SeasonalityDefinition.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic DoubleArray getSeasonalityMonthOnMonth()
This is an array of length 12, with the first element being the adjustment from January to February, the second element being the adjustment from February to March, and so on to the 12th element being the adjustment from December to January.
public ShiftType getAdjustmentType()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.