Documentation ¶
Index ¶
- type MeasurementStablizer
- func (r3 *MeasurementStablizer[Data, Bucket]) AddMeasurement(bucket Bucket, measurement Data)
- func (r3 *MeasurementStablizer[Data, Bucket]) GetBounds() (Bucket, Bucket)
- func (r3 *MeasurementStablizer[Data, Bucket]) Interval()
- func (r3 *MeasurementStablizer[Data, Bucket]) IsStable() bool
- func (r3 *MeasurementStablizer[Data, Bucket]) Reserve(bucket Bucket)
- type Stabilizer
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 }
Click to show internal directories.
Click to hide internal directories.