MultivariateSample Class

Represents a multivariate sample.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public sealed class MultivariateSample : ICollection<double[]>, 
	IEnumerable<double[]>, IEnumerable
Inheritance
Object    MultivariateSample
Implements
ICollectionDouble, IEnumerableDouble, IEnumerable

Remarks

A multivariate sample is simply a sample in which more than one number is associated with each data point. A study which records only the height of each subject could use the Sample class to store its data, but a study which records the income and height of each subject should use MutlivariateSample class. In addition to descriptive statistics, this class offers tests for studying the associations between the recorded variables, and routines for fitting the sample to a model.

NOTE: This class will be retired in a future release. Its functionality is replaced by the Multivariate class, which can operatate on arbitrary data lists.

Constructors

MultivariateSample(Int32) Initializes a new multivariate sample.
MultivariateSample(String) Initializes a new multivariate sample with the given variable names.

Properties

Count Gets the number of entries in the sample.
Dimension Gets the dimension of the sample.
IsReadOnly Gets a value indicating whether the multivariate sample can be modified.

Methods

Add(Double) Adds an entry to the sample.
Add(IReadOnlyListDouble) Adds an entry to the sample.
CentralMoment(Int32) Computes the given sample central moment.
CentralMoment(IReadOnlyListInt32) Computes the given sample central moment.
Clear Removes all entries from the sample.
Column Gets the indicated column as a univariate Sample.
Columns(Int32) Gets the indicated columns as a multivariate sample.
Columns(IReadOnlyListInt32) Gets the indicated columns as a multivariate sample.
Contains(Double) Determines whether the sample contains a given entry.
Contains(IReadOnlyListDouble) Determines whether the sample contains a given entry.
Copy Copies the multivariate sample.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetEnumerator Gets an enumerator over the sample entries.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
LinearRegression Performs a linear regression analysis.
LogisticLinearRegression Performs a linear logistic regression analysis.
MeansClustering Compute k-means clusters of the data.
PrincipalComponentAnalysis Performs a principal component analysis of the data.
RawMoment(Int32) Computes the given sample raw moment.
RawMoment(IReadOnlyListInt32) Computes the given sample raw moment.
Remove(Double) Removes an entry from the sample.
Remove(IReadOnlyListDouble) Removes an entry from the sample.
ToStringReturns a string that represents the current object.
(Inherited from Object)
TwoColumns Gets the indicated columns as a BivariateSample.

See Also