Class QuantileFinderTest

java.lang.Object
cern.jet.stat.quantile.QuantileFinderTest

class QuantileFinderTest extends Object
A class holding test cases for exact and approximate quantile finders.
  • Constructor Details

    • QuantileFinderTest

      QuantileFinderTest()
  • Method Details

    • binaryMultiSearch

      protected static IntArrayList binaryMultiSearch(DoubleArrayList list, double element)
      Finds the first and last indexes of a specific element within a sorted list.
      Parameters:
      list - cern.colt.list.DoubleArrayList
      element - the element to search for
      Returns:
      int[]
    • epsilon

      public static double epsilon(int size, double phi, double rank)
      Observed epsilon
    • epsilon

      public static double epsilon(DoubleArrayList sortedList, double phi, double element)
      Observed epsilon
    • epsilon

      public static double epsilon(DoubleArrayList sortedList, DoubleQuantileFinder finder, double phi)
      Observed epsilon
    • main

      public static void main(String[] args)
    • observedEpsilonAtPhi

      public static double observedEpsilonAtPhi(double phi, ExactDoubleQuantileFinder exactFinder, DoubleQuantileFinder approxFinder)
      This method was created in VisualAge.
      Parameters:
      values - cern.it.hepodbms.primitivearray.DoubleArrayList
      phis - double[]
      Returns:
      double[]
    • observedEpsilonsAtPhis

      public static DoubleArrayList observedEpsilonsAtPhis(DoubleArrayList phis, ExactDoubleQuantileFinder exactFinder, DoubleQuantileFinder approxFinder, double desiredEpsilon)
      This method was created in VisualAge.
      Parameters:
      phis - double[]
      values - cern.it.hepodbms.primitivearray.DoubleArrayList
      Returns:
      double[]
    • test

      public static void test()
      Not yet commented.
    • testBestBandKCalculation

      public static void testBestBandKCalculation(String[] args)
      This method was created in VisualAge.
    • testLocalVarDeclarationSpeed

      public static void testLocalVarDeclarationSpeed(int size)
      This method was created in VisualAge.
    • testQuantileCalculation

      public static void testQuantileCalculation(String[] args)
    • testRank

      public static void testRank()
      Not yet commented.