Documentation ¶
Index ¶
- type RealNumber
- type SampleStatistics
- func (s SampleStatistics) Equals(other SampleStatistics, absTol float64) bool
- func (s SampleStatistics) Max() float64
- func (s SampleStatistics) Median() float64
- func (s SampleStatistics) Min() float64
- func (s SampleStatistics) Q1() float64
- func (s SampleStatistics) Q3() float64
- func (s SampleStatistics) ReplaceNaNs(r float64) SampleStatistics
- func (s SampleStatistics) String() string
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
Click to show internal directories.
Click to hide internal directories.