stats

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccGeometricMean

func AccGeometricMean[R num.RealNumber](q linq.Query[linq.Delta[R]]) linq.Query[R]

AccGeometricMean accumulates the geometric mean of the input values within a sliding window. Use the Slide... functions to construct a suitable input window.

func AccHarmonicMean

func AccHarmonicMean[F constraints.Float](q linq.Query[linq.Delta[F]]) linq.Query[F]

AccHarmonicMean accumulates the harmonic mean of the input values within a sliding window. Use the Slide... functions to construct a suitable input window.

func AccMean

func AccMean[R num.RealNumber](q linq.Query[linq.Delta[R]]) linq.Query[R]

AccMean accumulates the arithmetic mean of the input values within a sliding window. Use the Slide... functions to construct a suitable input window.

func AccProduct

func AccProduct[R num.RealNumber](q linq.Query[linq.Delta[R]]) linq.Query[R]

AccProduct accumulates the product of the input values within a sliding window. Use the Slide... functions to construct a suitable input window.

func AccSum

func AccSum[R num.RealNumber](q linq.Query[linq.Delta[R]]) linq.Query[R]

AccSum accumulates the sum of the input values within a sliding window. Use the Slide... functions to construct a suitable input window.

func GeometricMean

func GeometricMean[R num.RealNumber](q linq.Query[R]) linq.Maybe[R]

GeometricMean returns the geometric mean of the numbers in q or ok=false if q is empty.

func HarmonicMean

func HarmonicMean[F constraints.Float](q linq.Query[F]) linq.Maybe[F]

HarmonicMean returns the harmonic mean of the numbers in q or ok = false if q is empty.

func Mean

func Mean[R num.RealNumber](q linq.Query[R]) linq.Maybe[R]

Mean returns the arithmetic mean of the numbers in q or ok = false if q is empty.

This function is equivalent to "github.com/linqgo/linq".Average, which is retained for parity with .Net's Enumerable class.

func Product

func Product[R num.Number](q linq.Query[R]) R

Product returns the product of the numbers in q or 1 if q is empty.

func Sum

func Sum[R num.Number](q linq.Query[R]) R

Sum returns the sum of the num.Numbers in q or 0 if q is empty.

This function is equivalent to "github.com/linqgo/linq".Sum, which is retained for parity with .Net's Enumerable class.

Types

This section is empty.

Jump to

Keyboard shortcuts

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