sample

package
v0.0.0-...-b4fbdbd Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package sample provides various statistical operations and algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UTest

func UTest(old, new *Sample) (pval float64, err error)

Mann-Whitney U test.

Types

type Sample

type Sample struct {
	Xs     []float64
	Sorted bool
}

Sample represents a single sample - set of data points collected during an experiment.

func (*Sample) Copy

func (s *Sample) Copy() *Sample

func (*Sample) Median

func (s *Sample) Median() float64

func (*Sample) Percentile

func (s *Sample) Percentile(p float64) float64

func (*Sample) RemoveOutliers

func (s *Sample) RemoveOutliers() *Sample

Remove outliers by the Tukey's fences method.

func (*Sample) Sort

func (s *Sample) Sort()

Jump to

Keyboard shortcuts

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