Versions in this module Expand all Collapse all v0 v0.48.9 Sep 5, 2024 v0.48.9-rc1 Sep 5, 2024 v0.48.9-rc0 Sep 4, 2024 v0.48.8 Sep 3, 2024 v0.48.7 Aug 26, 2024 v0.48.6 Aug 15, 2024 v0.48.6-rc0 Aug 15, 2024 v0.48.5 Aug 13, 2024 v0.48.4 Aug 2, 2024 v0.48.3 Jul 29, 2024 v0.48.2 Jul 18, 2024 v0.48.1 Jul 18, 2024 v0.48.0 Jul 4, 2024 v0.48.0-rc0 Jul 1, 2024 v0.47.3-rc0 Jun 11, 2024 v0.47.2 May 13, 2024 v0.47.1 Apr 22, 2024 v0.47.0 Apr 9, 2024 Changes in this version + var ErrMismatchedSamples = errors.New("samples have different lengths") + var ErrSampleSize = errors.New("sample is too small") + var ErrSamplesEqual = errors.New("all samples are equal") + var ErrZeroVariance = errors.New("sample has zero variance") + var MannWhitneyExactLimit = 50 + var MannWhitneyTiesExactLimit = 25 + var StdNormal = NormalDist + func InvCDF(dist DistCommon) func(y float64) (x float64) + func Rand(dist DistCommon) func(*rand.Rand) float64 + type DiscreteDist interface + PMF func(x float64) float64 + Step func() float64 + type Dist interface + PDF func(x float64) float64 + type DistCommon interface + Bounds func() (float64, float64) + CDF func(x float64) float64 + type LocationHypothesis int + const LocationDiffers + const LocationGreater + const LocationLess + type MannWhitneyUTestResult struct + AltHypothesis LocationHypothesis + N1 int + N2 int + P float64 + U float64 + func MannWhitneyUTest(x1, x2 []float64, alt LocationHypothesis) (*MannWhitneyUTestResult, error) + type NormalDist struct + Mu float64 + Sigma float64 + func (n NormalDist) Bounds() (float64, float64) + func (n NormalDist) CDF(x float64) float64 + func (n NormalDist) InvCDF(p float64) (x float64) + func (n NormalDist) PDF(x float64) float64 + func (n NormalDist) Rand(r *rand.Rand) float64 + type UDist struct + N1 int + N2 int + T []int + func (d UDist) Bounds() (float64, float64) + func (d UDist) CDF(U float64) float64 + func (d UDist) PMF(U float64) float64 + func (d UDist) Step() float64