Click or drag to resize
Sample Class
Represents a set of data points, where each data point consists of a single real number.
Inheritance Hierarchy
SystemObject
  Meta.Numerics.StatisticsSample

Namespace:  Meta.Numerics.Statistics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public sealed class Sample : ICollection<double>, 
	IEnumerable<double>, IEnumerable

The Sample type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCount
Gets the number of values in the sample.
Public propertyInterquartileRange
Gets the interquartile range of sample measurmements.
Public propertyIsReadOnly
Gets a value indicating whether the sample is read-only.
Public propertyMaximum
Gets the largest value in the sample.
Public propertyMean
Gets the sample mean.
Public propertyMedian
Gets the sample median.
Public propertyMinimum
Gets the smallest value in the sample.
Public propertyName
Gets or sets the name of the sample.
Public propertyPopulationMean
Gets an estimate of the population mean from the sample.
Public propertyPopulationStandardDeviation
Gets an estimate of the population standard deviation from the sample.
Public propertyPopulationVariance
Gets an estimate of the population variance from the sample.
Public propertySkewness
Gets the sample skewness.
Public propertyStandardDeviation
Gets the sample standard deviation.
Public propertyVariance
Gets the sample variance.
Top
Methods
  NameDescription
Public methodAdd(IEnumerableDouble)
Adds multiple values to the sample.
Public methodAdd(Double)
Adds a value to the sample.
Public methodAdd(Double)
Adds multiple values to the sample.
Public methodClear
Remove all values from the sample.
Public methodContains
Determines whether the sample contains the given value.
Public methodCopy
Copies the sample.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberFisherFTest
Tests whether the variances of two samples are compatible.
Public methodGetEnumerator
Gets an enumerator of sample values.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverseLeftProbability
Gets the sample value corresponding to a given percentile score.
Public methodKolmogorovSmirnovTest(Distribution)
Tests whether the sample is compatible with the given distribution.
Public methodStatic memberKolmogorovSmirnovTest(Sample, Sample)
Tests whether the sample is compatible with another sample.
Public methodStatic memberKruskalWallisTest(Sample)
Performs a Kruskal-Wallis test on the given samples.
Public methodStatic memberKruskalWallisTest(IListSample)
Performs a Kruskal-Wallis test on the given samples.
Public methodKuiperTest
Tests whether the sample is compatible with the given distribution.
Public methodLeftProbability
Gets the fraction of values equal to or less than the given value.
Public methodStatic memberMannWhitneyTest
Tests whether one sample median is compatible with another sample median.
Public methodMaximumLikelihoodFit
Performs a maximum likelihood fit.
Public methodMoment
Computes the given sample moment.
Public methodMomentAboutMean
Computes the given sample moment about its mean.
Public methodStatic memberOneWayAnovaTest(Sample)
Performs a one-way analysis of variance (ANOVA).
Public methodStatic memberOneWayAnovaTest(ICollectionSample)
Performs a one-way analysis of variance (ANOVA).
Public methodPopulationMoment
Estimates the given population moment using the sample.
Public methodPopulationMomentAboutMean
Estimates the given population moment about the mean using the sample.
Public methodRemove
Removes a given value from the sample.
Public methodSignTest
Tests whether the sample median is compatible with the given reference value.
Public methodCode exampleStudentTTest(Double)
Tests whether the sample mean is compatible with the reference mean.
Public methodStudentTTest(Double, TestType)
Tests whether the sample mean differs from the reference mean in the specified direction.
Public methodStatic memberStudentTTest(Sample, Sample)
Tests whether one sample mean is compatible with another sample mean.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransform
Transforms all values using a user-supplied function.
Public methodStatic memberTwoWayAnovaTest
Performs a two-way analysis of variance.
Public methodCode exampleZTest(Double, Double)
Performs a z-test.
Public methodZTest(Double, Double, TestType)
Performs a z-test with the given sidedness.
Top
Remarks

A univariate sample is a data set which records one number for each independent observation. For example, data from a study which measured the weight of each subject could be stored in the Sample class. The class offers descriptive statistics for the sample, estimates of descriptive statistics of the underlying population distribution, and statistical tests to compare the sample distribution to other sample distributions or theoretical models.

See Also