holt_winters

package
v0.192.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HoltWinters

type HoltWinters struct {
	// contains filtered or unexported fields
}

HoltWinters forecasts a series into the future. This is done using the Holt-Winters damped method.

  1. The initial values are calculated using a SSE.
  2. The series is forecast into the future using the iterative relations.

func New

func New(n, s int, withFit bool, alloc memory.Allocator) *HoltWinters

New creates a new HoltWinters. HoltWinters uses the given allocator for memory tracking purposes, and in order to build its result.

func (*HoltWinters) Do

func (r *HoltWinters) Do(vs *array.Float) (*array.Float, float64)

Do returns the points generated by the HoltWinters algorithm given a dataset.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL