C# Class Accord.Statistics.Testing.SignTest

Inheritance: BinomialTest
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
SignTest ( double sample, double hypothesizedMedian, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System

Tests the null hypothesis that the sample median is equal to a hypothesized value.

SignTest ( int positiveSamples, int totalSamples, OneSampleHypothesis alternate ) : System

Tests the null hypothesis that the sample median is equal to a hypothesized value.

Protected Methods

Method Description
Compute ( int positive, int total, OneSampleHypothesis alternate ) : void

Computes the one sample sign test.

Method Details

Compute() protected method

Computes the one sample sign test.
protected Compute ( int positive, int total, OneSampleHypothesis alternate ) : void
positive int
total int
alternate OneSampleHypothesis
return void

SignTest() public method

Tests the null hypothesis that the sample median is equal to a hypothesized value.
public SignTest ( double sample, double hypothesizedMedian, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System
sample double The data samples from which the test will be performed.
hypothesizedMedian double The constant to be compared with the samples.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test.
return System

SignTest() public method

Tests the null hypothesis that the sample median is equal to a hypothesized value.
public SignTest ( int positiveSamples, int totalSamples, OneSampleHypothesis alternate ) : System
positiveSamples int The number of positive samples.
totalSamples int The total number of samples.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test.
return System