ewma

package module
v0.0.0-...-d1de1ba Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 1 Imported by: 0

README

anomaly-detection

Algorithms for anomaly detection in Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EWMA

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

func NewEWMA

func NewEWMA(lambda float64) *EWMA

func (*EWMA) AddDatapoint

func (e *EWMA) AddDatapoint(value float64)

func (*EWMA) GetEWMA

func (e *EWMA) GetEWMA() float64

func (*EWMA) GetNewEWMA

func (e *EWMA) GetNewEWMA(value float64) float64

type EWMADropDetector

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

func NewEWMADropDetector

func NewEWMADropDetector(ewma *EWMA, sdThresholdFactor float64, trainingPeriod int) *EWMADropDetector

func (*EWMADropDetector) AddDatapoint

func (e *EWMADropDetector) AddDatapoint(value float64) bool

Jump to

Keyboard shortcuts

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