Represents a set of data points, where each data point is described by a pair of real numbers.
Namespace: Meta.Numerics.StatisticsAssembly: Meta.Numerics (in Meta.Numerics.dll) Version: 2.1.0.0 (2.1.0.0)
Syntax
| C# | Visual Basic | Visual C++ | F# |
public sealed class BivariateSample
Public NotInheritable Class BivariateSample
public ref class BivariateSample sealed
[<SealedAttribute>] type BivariateSample = class end
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| BivariateSample()()()() |
Initializes a new bivariate sample.
| |
| BivariateSample(String, String) |
Initializes a new bivariate sample with the given variable names.
| |
| Add(Double, Double) |
Adds a data point to the sample.
| |
| Clear()()()() |
Removes all data points from the sample.
| |
| Contains(Double, Double) |
Determines whether the sample contains a given data point.
| |
| Copy()()()() |
Copies the bivariate sample.
| |
| Count |
Gets the number of data points.
| |
| Covariance |
Gets the covariance of the two variables.
| |
| 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.) | |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| KendallTauTest()()()() |
Performs a Kendall concordance test for association.
| |
| LinearLogisticRegression()()()() |
Computes the best-fit linear logistic regression from the data.
| |
| LinearRegression()()()() |
Computes the best-fit linear regression from the data.
| |
| Load(IDataReader, Int32, Int32) |
Loads values from a data reader.
| |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| PairedStudentTTest()()()() |
Performs a paired Student t-test.
| |
| PearsonRTest()()()() |
Performs a Pearson correlation test for association.
| |
| PolynomialRegression(Int32) |
Computes the polynomial of given degree which best fits the data.
| |
| PopulationCovariance |
Estimates of the population covariance of two variables.
| |
| Remove(Double, Double) |
Removes a data point from the sample.
| |
| SpearmanRhoTest()()()() |
Performs a Spearman rank-order test of association between the two variables.
| |
| ToString()()()() | (Inherited from Object.) | |
| TransposeXY()()()() |
Swaps the X and Y variables in the bivariate sample.
| |
| X |
Gets a read-only univariate sample consisting of the x-values of the data points.
| |
| Y |
Gets a read-only univariate sample consisting of the y-values of the data points.
|
Remarks
A bivariate sample consists of pairs of real numbers, where each pair is an independent measurement. For example, if you measure the height and weight of a sample of people, the data could be stored as a bivariate sample. The class can compute various descriptive statistics for the sample, perform appropriate statistical tests on the sample data, and fit the sample data to various models.