stabilizer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: GPL-2.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 MeasurementStablizer

type MeasurementStablizer[Data constraints.Float | constraints.Integer, Bucket utilities.Number] struct {
	// contains filtered or unexported fields
}

func NewStabilizer

func NewStabilizer[Data constraints.Float | constraints.Integer, Bucket utilities.Number](
	mad int,
	sdt float64,
	trimmingLevel uint,
	units string,
	debugLevel debug.DebugLevel,
	debug *debug.DebugWithPrefix,
) MeasurementStablizer[Data, Bucket]

func (*MeasurementStablizer[Data, Bucket]) AddMeasurement

func (r3 *MeasurementStablizer[Data, Bucket]) AddMeasurement(bucket Bucket, measurement Data)

func (*MeasurementStablizer[Data, Bucket]) GetBounds

func (r3 *MeasurementStablizer[Data, Bucket]) GetBounds() (Bucket, Bucket)

func (*MeasurementStablizer[Data, Bucket]) Interval

func (r3 *MeasurementStablizer[Data, Bucket]) Interval()

func (*MeasurementStablizer[Data, Bucket]) IsStable

func (r3 *MeasurementStablizer[Data, Bucket]) IsStable() bool

func (*MeasurementStablizer[Data, Bucket]) Reserve

func (r3 *MeasurementStablizer[Data, Bucket]) Reserve(bucket Bucket)

type Stabilizer

type Stabilizer[Data any, Bucket constraints.Ordered] interface {
	Interval()
	AddMeasurement(Data, Bucket)
	IsStable() bool
}

Jump to

Keyboard shortcuts

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