Constructs a TwoSamplePairedTTest instance using the given paired arrays of sample data,
and the given hypothesis parameters.
Namespace:
CenterSpace.NMath.StatsAssembly: NMathStats (in NMathStats.dll) Version: 3.4.0.0
Syntax
| C# |
|---|
public TwoSamplePairedTTest( int[] data1, int[] data2, double alpha, HypothesisType type ) |
| Visual Basic (Declaration) |
|---|
Public Sub New ( _ data1 As Integer(), _ data2 As Integer(), _ alpha As Double, _ type As HypothesisType _ ) |
| Visual C++ |
|---|
public: TwoSamplePairedTTest( array<int>^ data1, array<int>^ data2, double alpha, HypothesisType type ) |
Parameters
- data1
- Type: array<
System..::.Int32
>[]()[]
An array of observed values.
- data2
- Type: array<
System..::.Int32
>[]()[]
An array of observed values.
- alpha
- Type: System..::.Double
The accepted probability of falsely rejecting the null hypothesis.
- type
- Type: CenterSpace.NMath.Stats..::.HypothesisType
Enum value indicating the form of the alternative hypothesis.
Remarks
The mean of the differences between paired observations, the standard deviation of the
differences, and the sample size are computed from the given arrays.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the given data contains zero pairs. |