Documentation of 'javanpst.distributions.tests.NMDistribution' Java class
NMDistribution
javanpst.distributions.tests

Class NMDistribution



  • public class NMDistribution
    extends java.lang.Object
    An implementation of the NM distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

        public static NMDistribution getInstance()
        Singleton pattern access to the distribution
        Returns:
        the instance of the distribution
      • getTableLeft

        public static Incomplete2KeyTable getTableLeft()
        Gets the table of the left tail of the distribution
        Returns:
        Reference to the table
      • getTableRight

        public static Incomplete2KeyTable getTableRight()
        Gets the table of the right tail of the distribution
        Returns:
        Reference to the table
      • computeLeftProbability

        public double computeLeftProbability(int n,
                                             double realNM)
        Computes left tail p-value of the NM distribution.
        Parameters:
        n - length of the sequence
        realNM - NM statistic
        Returns:
        p-value computed
      • computeRightProbability

        public double computeRightProbability(int n,
                                              double realNM)
        Computes right tail p-value of the NM distribution.
        Parameters:
        n - length of the sequence
        realNM - NM statistic
        Returns:
        p-value computed
      • isApproximate

        public boolean isApproximate()
        Tests if the last estimation was approximate
        Returns:
        true if the last estimation was approximate. False, otherwise

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.