NumberRunsTest
javanpst.tests.randomness.numberRunsTest

Class NumberRunsTest



  • public class NumberRunsTestextends StatisticalTest
    A number of runs test. This tests check randomness of a binary string sequence (e.g XYXXYYXXXYXYXXYXYXXY) by analyzing its number of runs. A normal approximation is also provided.
    • Constructor Detail

      • NumberRunsTest

        public NumberRunsTest()
        Default builder
      • NumberRunsTest

        public NumberRunsTest(StringSequence newSequence)
        Builder. Load data to test.
        Parameters:
        newSequence - data to test.
    • Method Detail

      • setData

        public void setData(StringSequence newSequence)
        Builder. Load data to test.
        Parameters:
        newSequence - data to test.
      • getN1

        public double getN1()
        Get the number of elements of the less common type
        Returns:
        n1 value
      • getN2

        public double getN2()
        Get the number of elements of the most common type
        Returns:
        n2 value
      • getRuns

        public double getRuns()
        Get the number of runs
        Returns:
        number of runs
      • getExactLeftPValue

        public double getExactLeftPValue()
        Get left tail exact p-value
        Returns:
        left tail p-value computed
      • getExactRightPValue

        public double getExactRightPValue()
        Get right tail exact p-value
        Returns:
        right tail p-value computed
      • getExactDoublePValue

        public double getExactDoublePValue()
        Get double tail exact p-value
        Returns:
        double tail p-value computed
      • getLeftPValue

        public double getLeftPValue()
        Get left tail p-value
        Returns:
        left tail p-value computed
      • getRightPValue

        public double getRightPValue()
        Get right tail p-value
        Returns:
        right tail p-value computed
      • getDoublePValue

        public double getDoublePValue()
        Get double tail p-value
        Returns:
        double tail p-value computed

SCaVis 1.7 © jWork.org