holtwinters

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MethodAdditive specifies a HoltWinters time series prediction using the additive method
	MethodAdditive = "additive"
	// MethodMultiplicative specifies a HoltWinters time series prediction using the multiplicative method
	MethodMultiplicative = "multiplicative"
)
View Source
const Type = "HoltWinters"

Type HoltWinters is the type of the HoltWinters predicter

Variables

This section is empty.

Functions

This section is empty.

Types

type Predict

type Predict struct{}

Predict provides logic for using Linear Regression to make a prediction

func (*Predict) GetIDsToRemove

func (p *Predict) GetIDsToRemove(model *config.Model, evaluations []*stored.Evaluation) ([]int, error)

GetIDsToRemove provides the list of stored evaluation IDs to remove, if there are too many stored seasons it will remove the oldest seasons

func (*Predict) GetPrediction

func (p *Predict) GetPrediction(model *config.Model, evaluations []*stored.Evaluation) (int32, error)

GetPrediction uses a linear regression to predict what the replica count should be based on historical evaluations

func (*Predict) GetType

func (p *Predict) GetType() string

GetType returns the type of the Prediction model

Jump to

Keyboard shortcuts

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