public static class HoltLinearModel.HoltLinearModelBuilder extends Object implements MovAvgModelBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
HoltLinearModel.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 |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
public HoltLinearModel.HoltLinearModelBuilder()
public 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 IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2017. All rights reserved.