aggregate

package
v0.0.0-...-11fc026 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func By

func By(list api.SeriesList, aggregator func([]float64) float64, tags []string, collapses bool) api.SeriesList

By takes a series list, an aggregator, and a set of tags. It produces a SeriesList which is the result of grouping by the tags and then aggregating each group into a single Series.

func Count

func Count(array []float64) float64

Count returns the number of non-NaN values in the givne list.

func Max

func Max(array []float64) float64

Max returns the maximum of the given slice

func Mean

func Mean(array []float64) float64

Mean aggregator returns the mean of the given slice

func Min

func Min(array []float64) float64

Min returns the minimum of the given slice

func Sum

func Sum(array []float64) float64

Sum returns the mean of the given slice

func Total

func Total(array []float64) float64

Total returns the number of values in the given list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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