package
0.0.0-20241118162539-34caac850176
Repository: https://go.googlesource.com/perf
Documentation: pkg.go.dev
# Functions
Bounds returns the minimum and maximum values of xs.
GeoMean returns the geometric mean of xs.
InvCDF returns the inverse CDF function of the given distribution (also known as the quantile function or the percent point function).
MannWhitneyUTest performs a Mann-Whitney U-test [1,2] of the null hypothesis that two samples come from the same population against the alternative hypothesis that one sample tends to have larger or smaller values than the other.
Mean returns the arithmetic mean of xs.
OneSampleTTest performs a one-sample t-test on sample x.
PairedTTest performs a two-sample paired t-test on samples x1 and x2.
Rand returns a random number generator that draws from the given distribution.
StdDev returns the sample standard deviation of xs.
TwoSampleTTest performs a two-sample (unpaired) Student's t-test on samples x1 and x2.
TwoSampleWelchTTest performs a two-sample (unpaired) Welch's t-test on samples x1 and x2.
Variance returns the sample variance of xs.
# Constants
LocationDiffers specifies the alternative hypothesis that the locations of the two samples are not equal.
LocationGreater specifies the alternative hypothesis that the location of the first sample is greater than the second.
LocationLess specifies the alternative hypothesis that the location of the first sample is less than the second.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MannWhitneyExactLimit gives the largest sample size for which the exact U distribution will be used for the Mann-Whitney U-test.
MannWhitneyTiesExactLimit gives the largest sample size for which the exact U distribution will be used for the Mann-Whitney U-test in the presence of ties.
StdNormal is the standard normal distribution (Mu = 0, Sigma = 1).
# Structs
DeltaDist is the Dirac delta function, centered at T, with total area 1.
A MannWhitneyUTestResult is the result of a Mann-Whitney U-test.
NormalDist is a normal (Gaussian) distribution with mean Mu and standard deviation Sigma.
Sample is a collection of possibly weighted data points.
A TDist is a Student's t-distribution with V degrees of freedom.
A TTestResult is the result of a t-test.
A UDist is the discrete probability distribution of the Mann-Whitney U statistic for a pair of samples of sizes N1 and N2.
# Interfaces
A DiscreteDist is a discrete statistical distribution.
A Dist is a continuous statistical distribution.
A DistCommon is a statistical distribution.
A TTestSample is a sample that can be used for a one or two sample t-test.
# Type aliases
A LocationHypothesis specifies the alternative hypothesis of a location test such as a t-test or a Mann-Whitney U-test.