period

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Period

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

Period holds counters etc to compute probabilities for given period size

func NewPeriod

func NewPeriod(history int, states int, buffersize int, periodSize []int, profiler api.TSProfiler) Period

NewPeriod initializes and returns a new Period

func (*Period) Count

func (period *Period) Count(tsstates []models.TSState)

Count takes a discretized Buffer represented as TSStates for each metric and increases the counter

func (*Period) GetCurrentPeriodPath

func (period *Period) GetCurrentPeriodPath() []int

GetCurrentPeriodPath returns the current tree positions

func (*Period) GetTx

func (period *Period) GetTx() models.PeriodTree

GetTx returns for each period the counters' TSProfileMetric matrix

Jump to

Keyboard shortcuts

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