|
TwoSampleWilcoxonSignedRankTest Constructor
|
Tests whether the medians of two paired samples are different.
Namespace:
Accord.Statistics.Testing
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public TwoSampleWilcoxonSignedRankTest(
double[] sample1,
double[] sample2,
TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent,
Nullable<bool> exact = null,
bool adjustForTies = true
)
Public Sub New (
sample1 As Double(),
sample2 As Double(),
Optional alternate As TwoSampleHypothesis = TwoSampleHypothesis.ValuesAreDifferent,
Optional exact As Nullable(Of Boolean) = Nothing,
Optional adjustForTies As Boolean = true
)
Request Example
View SourceParameters
- sample1
- Type: SystemDouble
The first sample. - sample2
- Type: SystemDouble
The second sample. - alternate (Optional)
- Type: Accord.Statistics.TestingTwoSampleHypothesis
The alternative hypothesis (research hypothesis) to test. - exact (Optional)
- Type: SystemNullableBoolean
True to compute the exact distribution. May require a significant
amount of processing power for large samples (n > 12). If left at null, whether to
compute the exact or approximate distribution will depend on the number of samples.
Default is null. - adjustForTies (Optional)
- Type: SystemBoolean
Whether to account for ties when computing the
rank statistics or not. Default is true.
See Also