Class KSTest


  • public class KSTest
    extends Object
    Class to perform the Kolmogorov-Smirnov test. Ported from R.
    Author:
    pavlidis
    • Constructor Detail

      • KSTest

        public KSTest()
    • Method Detail

      • oneSample

        public static double oneSample​(cern.colt.list.DoubleArrayList x,
                                       ProbabilityComputer pg)
        Parameters:
        x -
        pg -
        Returns:
        pvalue
      • oneSampleProbability

        public static double oneSampleProbability​(double statistic,
                                                  int n)
        Parameters:
        statistic -
        n -
        Returns:
      • oneSampleStatistic

        public static double oneSampleStatistic​(cern.colt.list.DoubleArrayList x,
                                                ProbabilityComputer pg)
        Parameters:
        x -
        pg -
        Returns:
      • twoSample

        public static double twoSample​(cern.colt.list.DoubleArrayList x,
                                       cern.colt.list.DoubleArrayList y)
        Parameters:
        x -
        y -
        Returns:
        pvalue
      • twoSampleProbability

        public static double twoSampleProbability​(double statistic,
                                                  int nx,
                                                  int ny)
        Parameters:
        statistic -
        nx -
        ny -
        Returns:
      • twoSampleStatistic

        public static double twoSampleStatistic​(cern.colt.list.DoubleArrayList x,
                                                cern.colt.list.DoubleArrayList y)
        Parameters:
        x -
        y -
        Returns: