public static class HoltLinearModel.HoltLinearModelBuilder extends java.lang.Object implements MovAvgModelBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
HoltLinearModelBuilder() |
| Modifier and Type | Method and Description |
|---|---|
HoltLinearModel.HoltLinearModelBuilder |
alpha(double alpha)
Alpha controls the smoothing of the data.
|
HoltLinearModel.HoltLinearModelBuilder |
beta(double beta)
Equivalent to
alpha, but controls the smoothing of the trend instead of the data |
MovAvgModel |
build() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFragmentpublic HoltLinearModel.HoltLinearModelBuilder alpha(double alpha)
alpha - A double between 0-1 inclusive, controls data smoothingpublic HoltLinearModel.HoltLinearModelBuilder beta(double beta)
alpha, but controls the smoothing of the trend instead of the databeta - a double between 0-1 inclusive, controls trend smoothingpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic MovAvgModel build()
build in interface MovAvgModelBuilder