estimator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TimeSeries2Float64Data

func TimeSeries2Float64Data(ts *common.TimeSeries) stats.Float64Data

Types

type Estimator

type Estimator interface {
	// Given a time series, then return a statistic estimation, an estimation is all the statistic data of the time series, such as P95, P99, avg, max, min, median, variance
	Estimation(ts *common.TimeSeries, estimateConfig map[string]interface{}) (*spec.Statistic, error)
}

type StatisticEstimator

type StatisticEstimator struct {
}

StatisticEstimator based on statistic such as histogram, mean,max,min,median and so on

func NewStatisticEstimator

func NewStatisticEstimator() *StatisticEstimator

func (*StatisticEstimator) Estimation

func (s *StatisticEstimator) Estimation(ts *common.TimeSeries, estimateConfig map[string]interface{}) (*spec.Statistic, error)

type VpaEstimator

type VpaEstimator struct {
}

VpaEstimator based on vpa decaying exponential moving window algorithm to estimate resource

func (VpaEstimator) Estimation

func (v VpaEstimator) Estimation(ts *common.TimeSeries, estimateConfig map[string]interface{}) (*spec.Statistic, error)

Jump to

Keyboard shortcuts

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