stats

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kurtosis

func Kurtosis(dl insyra.IDataList) interface{}

Kurtosis calculates the kurtosis(sample) of the DataList. Returns the kurtosis. Returns nil if the DataList is empty or the kurtosis cannot be calculated. 錯誤!

func Skew

func Skew(sample interface{}, method ...SkewnessMode) interface{}

Skew calculates the skewness(sample) of the DataList. Returns the skewness. Returns nil if the DataList is empty or the skewness cannot be calculated. Skew_FisherPearson method is not correct yet.

Types

type SkewnessMode added in v0.0.1

type SkewnessMode int

SkewnessMode is an enum type for skewness calculation mode.

const (
	// PearsonFirst represents Type 1 skewness calculation mode.
	Skew_PearsonFirst SkewnessMode = iota

	// FisherPearson represents Type 2 skewness calculation mode.
	Skew_FisherPearson

	// AdjustedFisherPearson represents Type 3 skewness calculation mode.
	Skew_AdjustedFisherPearson
)

Jump to

Keyboard shortcuts

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