public static class HoltWintersModel.HoltWintersModelBuilder extends java.lang.Object implements MovAvgModelBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
HoltWintersModelBuilder() |
Modifier and Type | Method and Description |
---|---|
HoltWintersModel.HoltWintersModelBuilder |
alpha(double alpha)
Alpha controls the smoothing of the data.
|
HoltWintersModel.HoltWintersModelBuilder |
beta(double beta)
Equivalent to
alpha , but controls the smoothing of the trend instead of the data |
MovAvgModel |
build() |
HoltWintersModel.HoltWintersModelBuilder |
gamma(double gamma) |
HoltWintersModel.HoltWintersModelBuilder |
pad(boolean pad) |
HoltWintersModel.HoltWintersModelBuilder |
period(int period) |
HoltWintersModel.HoltWintersModelBuilder |
seasonalityType(HoltWintersModel.SeasonalityType type) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public HoltWintersModel.HoltWintersModelBuilder alpha(double alpha)
alpha
- A double between 0-1 inclusive, controls data smoothingpublic HoltWintersModel.HoltWintersModelBuilder beta(double beta)
alpha
, but controls the smoothing of the trend instead of the databeta
- a double between 0-1 inclusive, controls trend smoothingpublic HoltWintersModel.HoltWintersModelBuilder gamma(double gamma)
public HoltWintersModel.HoltWintersModelBuilder period(int period)
public HoltWintersModel.HoltWintersModelBuilder seasonalityType(HoltWintersModel.SeasonalityType type)
public HoltWintersModel.HoltWintersModelBuilder pad(boolean pad)
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public MovAvgModel build()
build
in interface MovAvgModelBuilder