stats

package
v0.0.0-...-74d05c2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproximateQuantiles

func ApproximateQuantiles[T any](s beam.Scope, c gleam.PCollection[T], less func(a, b T) bool, opt stats.Opts) gleam.PCollection[T]

func ApproximateWeightedQuantiles

func ApproximateWeightedQuantiles[T any](s beam.Scope, c gleam.PCollection[T], less func(a, b T) bool, opt stats.Opts) gleam.PCollection[T]

func Count

func Count[T any](s beam.Scope, c gleam.PCollection[T]) gleam.PCollection[gleam.KV[T, int]]

func CountElms

func CountElms[T any](s beam.Scope, c gleam.PCollection[T]) gleam.PCollection[int]

func Max

func Max[T Numeric](s beam.Scope, c gleam.PCollection[T]) gleam.PCollection[T]

func MaxPerKey

func MaxPerKey[A Numeric, B any](s beam.Scope, c gleam.PCollection[gleam.KV[A, B]]) gleam.PCollection[gleam.KV[A, B]]

func Mean

func Mean[T Numeric](s beam.Scope, c gleam.PCollection[T]) gleam.PCollection[T]

func MeanPerKey

func MeanPerKey[A Numeric, B any](s beam.Scope, c gleam.PCollection[gleam.KV[A, B]]) gleam.PCollection[gleam.KV[A, B]]

func Min

func Min[T Numeric](s beam.Scope, c gleam.PCollection[T]) gleam.PCollection[T]

func MinPerKey

func MinPerKey[A Numeric, B any](s beam.Scope, c gleam.PCollection[gleam.KV[A, B]]) gleam.PCollection[gleam.KV[A, B]]

func Sum

func Sum[T Numeric](s beam.Scope, c gleam.PCollection[T]) gleam.PCollection[T]

func SumPerKey

func SumPerKey[A Numeric, B any](s beam.Scope, c gleam.PCollection[gleam.KV[A, B]]) gleam.PCollection[gleam.KV[A, B]]

Types

type Numeric

type Numeric interface {
	constraints.Integer | constraints.Float
}

Jump to

Keyboard shortcuts

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