LillieforsDistribution
javanpst.distributions.tests

Class LillieforsDistribution



  • public class LillieforsDistributionextends Object
    An implementation of the Lilliefors distribution. Uses a Singleton pattern to ensure only an instance of the class is allowed.
    • Method Detail

      • getInstance

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

        public static Critical1KeyTable getNormalTable()
        Gets the table of the distribution (normal)
        Returns:
        Reference to the table
      • getExponentialTable

        public static Critical1KeyTable getExponentialTable()
        Gets the table of the distribution (exponential)
        Returns:
        Reference to the table
      • computeProbabilityNormal

        public double computeProbabilityNormal(int n,                              double Dn)
        Computes p-value of the Lilliefors distribution (adjust to a normal distribution).
        Parameters:
        n - size of the population
        Dn - Lilliefors statistic
        Returns:
        p-value computed
      • computeProbabilityExponential

        public double computeProbabilityExponential(int n,                                   double Dn)
        Computes p-value of the Lilliefors distribution (adjust to a normal distribution).
        Parameters:
        n - size of the population
        Dn - Lilliefors 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

SCaVis 2.0 © jWork.ORG