Constructs a TwoSampleFTest instance using the given 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 TwoSampleFTest( 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: TwoSampleFTest( array<int>^ data1, array<int>^ data2, double alpha, HypothesisType type ) |
Parameters
- data1
- Type: array<
System..::.Int32
>[]()[]
An array of observed values for the first sample.
- data2
- Type: array<
System..::.Int32
>[]()[]
An array of observed values for the second sample.
- 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 sample means, sample standard deviations, and sample sizes are computed from
the given arrays.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if either sample has length of zero. |