stats

package
v0.0.0-...-bd0d80a Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 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 RealNumber

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

type SampleStatistics

type SampleStatistics struct {
	Size      int
	Mean      float64
	Variance  float64
	Skewness  float64
	Quartiles [5]float64
}

func NoData

func NoData() SampleStatistics

func Summarise

func Summarise[T RealNumber](sample []T) SampleStatistics

func (SampleStatistics) Equals

func (s SampleStatistics) Equals(other SampleStatistics, absTol float64) bool

func (SampleStatistics) Max

func (s SampleStatistics) Max() float64

func (SampleStatistics) Median

func (s SampleStatistics) Median() float64

func (SampleStatistics) Min

func (s SampleStatistics) Min() float64

func (SampleStatistics) Q1

func (s SampleStatistics) Q1() float64

func (SampleStatistics) Q3

func (s SampleStatistics) Q3() float64

func (SampleStatistics) ReplaceNaNs

func (s SampleStatistics) ReplaceNaNs(r float64) SampleStatistics

ReplaceNaNs returns a copy of this SampleStatistics object with all NaN values replaced by the given value r.

func (SampleStatistics) String

func (s SampleStatistics) String() string

Jump to

Keyboard shortcuts

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