Represents a set of data points, where each data point consists of a single real number.
| C# | Visual Basic | Visual C++ | F# |
public sealed class Sample : ICollection<double>, IEnumerable<double>, IEnumerable
Public NotInheritable Class Sample _ Implements ICollection(Of Double), IEnumerable(Of Double), _ IEnumerable
public ref class Sample sealed : ICollection<double>, IEnumerable<double>, IEnumerable
[<SealedAttribute>] type Sample = class interface ICollection<float> interface IEnumerable<float> interface IEnumerable end
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| Sample()()()() |
Initializes a new, empty sample.
| |
| Sample(String) |
Initializes a new, empty sample with the given name.
| |
| Sample(IEnumerable<(Of <<'(Double>)>>)) |
Initializes a new sample from a list of values.
| |
| Sample(array<Double>[]()[][]) |
Initializes a new sample from a list of values.
| |
| Add(Double) |
Adds a value to the sample.
| |
| Add(IEnumerable<(Of <<'(Double>)>>)) |
Adds multiple values to the sample.
| |
| Add(array<Double>[]()[][]) |
Adds multiple values to the sample.
| |
| Clear()()()() |
Remove all values from the sample.
| |
| Contains(Double) |
Determines whether the sample contains the given value.
| |
| Copy()()()() |
Copies the sample.
| |
| Count |
Gets the number of values in the sample.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| FisherFTest(Sample, Sample) |
Tests whether the variance of two samples is compatible.
| |
| GetEnumerator()()()() |
Gets an enumerator of sample values.
| |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| InterquartileRange |
Gets the interquartile range of sample measurmements.
| |
| InverseLeftProbability(Double) |
Gets the sample value corresponding to a given percentile score.
| |
| IsReadOnly |
Gets a value indicating whether the sample is read-only.
| |
| KolmogorovSmirnovTest(Distribution) |
Tests whether the sample is compatible with the given distribution.
| |
| KolmogorovSmirnovTest(Sample) |
Tests whether the sample is compatible with another sample.
| |
| KruskalWallisTest(IList<(Of <<'(Sample>)>>)) |
Performs a Kruskal-Wallis test on the given samples.
| |
| KruskalWallisTest(array<Sample>[]()[][]) |
Performs a Kruskal-Wallis test on the given samples.
| |
| KuiperTest(Distribution) |
Tests whether the sample is compatible with the given distribution.
| |
| LeftProbability(Double) |
Gets the fraction of values equal to or less than the given value.
| |
| Load(IDataReader, Int32) |
Loads values from a data reader.
| |
| MannWhitneyTest(Sample, Sample) |
Tests whether the sample median is compatible with the mean of another sample.
| |
| Maximum |
Gets the largest value in the sample.
| |
| MaximumLikelihoodFit(IParameterizedDistribution) |
Performs a maximum likelihood fit.
| |
| Mean |
Gets the sample mean.
| |
| Median |
Gets the sample median.
| |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Minimum |
Gets the smallest value in the sample.
| |
| Moment(Int32) |
Computes the given sample moment.
| |
| MomentAboutMean(Int32) |
Computes the given sample moment about its mean.
| |
| Name |
Gets or sets the name of the sample.
| |
| OneWayAnovaTest(array<Sample>[]()[][]) |
Performs a one-way ANOVA.
| |
| OneWayAnovaTest(IList<(Of <<'(Sample>)>>)) |
Performs a one-way ANOVA.
| |
| PopulationMean |
Gets an estimate of the population mean from the sample.
| |
| PopulationMoment(Int32) |
Estimates the given population moment using the sample.
| |
| PopulationMomentAboutMean(Int32) |
Estimates the given population moment about the mean using the sample.
| |
| PopulationStandardDeviation |
Gets an estimate of the population standard deviation from the sample.
| |
| PopulationVariance |
Gets an estimate of the population variance from the sample.
| |
| Remove(Double) |
Removes a given value from the sample.
| |
| SignTest(Double) |
Tests whether the sample median is compatible with the given reference value.
| |
| StandardDeviation |
Gets the sample standard deviation.
| |
| StudentTTest(Double) |
Tests whether the sample mean is compatible with the reference mean.
| |
| StudentTTest(Sample, Sample) |
Tests whether one sample mean is compatible with another sample mean.
| |
| ToString()()()() | (Inherited from Object.) | |
| Variance |
Gets the sample variance.
| |
| ZTest(Double, Double) |
Performs a z-test.
|
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.
| Object | |
| Sample | |