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: 4.1.4
Syntax
public sealed class Sample : ICollection<double>, 
	IEnumerable<double>, IEnumerable, IReadOnlyCollection<double>

The Sample type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCorrectedStandardDeviation
Gets the Bessel-corrected standard deviation.
Public propertyCount
Gets the number of values in the sample.
Public propertyInterquartileRange
Gets the interquartile range of sample measurements.
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 methodCentralMoment
Computes the given sample central moment.
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 the default hash function.
(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(ContinuousDistribution)
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(IReadOnlyListSample)
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 methodStatic memberOneWayAnovaTest(Sample)
Performs a one-way analysis of variance (ANOVA).
Public methodStatic memberOneWayAnovaTest(IReadOnlyCollectionSample)
Performs a one-way analysis of variance (ANOVA).
Public methodPopulationCentralMoment
Estimates the given population central moment from the sample.
Public methodPopulationRawMoment
Estimates the given population raw moment from the sample.
Public methodRawMoment
Computes the given sample raw moment.
Public methodRemove
Removes a given value from the sample.
Public methodShapiroFranciaTest
Performs a Shapiro-Francia test of normality on 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 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
Performs a z-test.
Top
Extension Methods
  NameDescription
Public Extension MethodCentralMoment
Computes the given sample central moment.
(Defined by Univariate.)
Public Extension MethodCorrectedStandardDeviation
Computes the Bessel-corrected standard deviation.
(Defined by Univariate.)
Public Extension MethodMaximum
Finds the maximum value.
(Defined by Univariate.)
Public Extension MethodMean
Computes the sample mean.
(Defined by Univariate.)
Public Extension MethodMinimum
Finds the minimum value.
(Defined by Univariate.)
Public Extension MethodPopulationCentralMoment
Estimates the given central moment of the underlying population.
(Defined by Univariate.)
Public Extension MethodPopulationMean
Estimates the mean of the underlying population.
(Defined by Univariate.)
Public Extension MethodPopulationRawMoment
Estimates the given raw moment of the underlying population.
(Defined by Univariate.)
Public Extension MethodPopulationStandardDeviation
Estimates of the standard deviation of the underlying population.
(Defined by Univariate.)
Public Extension MethodPopulationVariance
Estimates of the variance of the underlying population.
(Defined by Univariate.)
Public Extension MethodRawMoment
Computes the given sample raw moment.
(Defined by Univariate.)
Public Extension MethodSignTest
Tests whether the sample median is compatible with the given reference value.
(Defined by Univariate.)
Public Extension MethodSkewness
Computes the sample skewness.
(Defined by Univariate.)
Public Extension MethodStandardDeviation
Computes the sample standard deviation.
(Defined by Univariate.)
Public Extension MethodCode exampleStudentTTest
Tests whether the sample mean is compatible with the reference mean.
(Defined by Univariate.)
Public Extension MethodVariance
Computes the sample variance.
(Defined by Univariate.)
Public Extension MethodCode exampleZTest
Performs a z-test to test whether the given sample is compatible with the given normal reference population.
(Defined by Univariate.)
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