Constructs a TwoSampleFTest instance using the given vectors of sample data.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public TwoSampleFTest( DoubleVector data1, DoubleVector data2 ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ data1 As DoubleVector, _ data2 As DoubleVector _ ) |
| Visual C++ |
|---|
public: TwoSampleFTest( DoubleVector^ data1, DoubleVector^ data2 ) |
Parameters
- data1
- Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of observed values for the first sample.
- data2
- Type: CenterSpace.NMath.Core..::.DoubleVector
A vector of observed values for the second sample.
Remarks
The sample means, sample standard deviations, and sample sizes are computed from
the given vectors. Missing values are ignored.
The alpha level is set to the current value specified by the
static DefaultAlpha property; the form of the hypothesis test is set to the
current DefaultType.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if either sample has length of zero after removing missing values. |