public static class EwmaModel.EWMAModelBuilder extends java.lang.Object implements MovAvgModelBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
EWMAModelBuilder() |
Modifier and Type | Method and Description |
---|---|
EwmaModel.EWMAModelBuilder |
alpha(double alpha)
Alpha controls the smoothing of the data.
|
MovAvgModel |
build() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public EwmaModel.EWMAModelBuilder alpha(double alpha)
alpha
- A double between 0-1 inclusive, controls data smoothingpublic 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