forecast1

package
v0.0.0-...-3b01d6c Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package forecast contains version 1 forecasting code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Steps     int
	Level     float32
	Trend     float32
	Forecasts []float32
	ErrEWMA   float32
	// contains filtered or unexported fields
}

func NewModel

func NewModel(steps int) *Model

func (*Model) Forecast

func (m *Model) Forecast() float32

func (*Model) Update

func (m *Model) Update(v, level, trend float32)

type Range

type Range [2]float64

func (Range) Subdivide

func (r Range) Subdivide(parts int) []float64

Jump to

Keyboard shortcuts

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