zsample

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FloatSampler

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

func NewFloatSampler

func NewFloatSampler(size int, frequency time.Duration) *FloatSampler

func (*FloatSampler) Add

func (s *FloatSampler) Add(val float64) (added bool)

func (FloatSampler) EstimateSecondsUntil

func (s FloatSampler) EstimateSecondsUntil(value float64) time.Duration

func (FloatSampler) ExtrapolateTimeLinearMillis

func (s FloatSampler) ExtrapolateTimeLinearMillis(val float64) time.Time

func (FloatSampler) ExtrapolateTimeLinearNano

func (s FloatSampler) ExtrapolateTimeLinearNano(val float64) time.Time

func (FloatSampler) ExtrapolateValueLinearNano

func (s FloatSampler) ExtrapolateValueLinearNano(time time.Time) float64

type IntSampler

type IntSampler struct {
	FloatSampler
}

func NewIntSampler

func NewIntSampler(size int, frequency time.Duration) *IntSampler

func (*IntSampler) Add

func (s *IntSampler) Add(value int) (added bool)

func (*IntSampler) EstimateSecondsUntil

func (s *IntSampler) EstimateSecondsUntil(val int) time.Duration

Jump to

Keyboard shortcuts

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