Class HoltLinearModel.HoltLinearModelBuilder

    • Constructor Detail

      • HoltLinearModelBuilder

        public HoltLinearModelBuilder()
    • Method Detail

      • alpha

        public HoltLinearModel.HoltLinearModelBuilder alpha​(double alpha)
        Alpha controls the smoothing of the data. Alpha = 1 retains no memory of past values (e.g. a random walk), while alpha = 0 retains infinite memory of past values (e.g. the series mean). Useful values are somewhere in between. Defaults to 0.5.
        Parameters:
        alpha - A double between 0-1 inclusive, controls data smoothing
        Returns:
        The builder to continue chaining
      • beta

        public HoltLinearModel.HoltLinearModelBuilder beta​(double beta)
        Equivalent to alpha, but controls the smoothing of the trend instead of the data
        Parameters:
        beta - a double between 0-1 inclusive, controls trend smoothing
        Returns:
        The builder to continue chaining