avg

package
v4.1.23 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Avg

type Avg struct {
	uda.AggInterface

	Avg   float64
	Count int64
}

func (*Avg) Accum

func (a *Avg) Accum(_ io.TimeBucketKey, argMap *functions.ArgumentMap, cols io.ColumnInterface,
) (*io.ColumnSeries, error)

Accum sends new data to the aggregate.

func (*Avg) GetInitArgs

func (a *Avg) GetInitArgs() []io.DataShape

func (*Avg) GetOptionalArgs

func (a *Avg) GetOptionalArgs() []io.DataShape

func (*Avg) GetRequiredArgs

func (a *Avg) GetRequiredArgs() []io.DataShape

func (Avg) New

func (a Avg) New(_ *functions.ArgumentMap, _ ...interface{}) (out uda.AggInterface, err error)

Creates a new count using the arguments of the specific implementation for inputColumns and optionalInputColumns

func (*Avg) Output

func (a *Avg) Output() *io.ColumnSeries

Output() returns the currently valid output of this aggregate

Jump to

Keyboard shortcuts

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