math

package
v0.0.0-...-27647ab Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Quantile

func Quantile(sortedData []float64, q float64) float64

Types

type Stats

type Stats struct {
	// contains filtered or unexported fields
}

func NewStats

func NewStats(data []float64) Stats

func (Stats) Data

func (s Stats) Data() []float64

func (Stats) Default

func (s Stats) Default() float64

func (Stats) Eq

func (s Stats) Eq(l, r float64) bool

func (Stats) Len

func (s Stats) Len() int

func (*Stats) Max

func (s *Stats) Max() float64

func (*Stats) Mean

func (s *Stats) Mean() float64

func (*Stats) Min

func (s *Stats) Min() float64

func (*Stats) Quantile

func (s *Stats) Quantile(q float64) float64

func (*Stats) SetDefault

func (s *Stats) SetDefault(dfl float64) *Stats

func (*Stats) SetEq

func (s *Stats) SetEq(eq func(l, r float64) bool) *Stats

func (*Stats) Sorted

func (s *Stats) Sorted() []float64

func (*Stats) Sum

func (s *Stats) Sum() float64

Jump to

Keyboard shortcuts

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