Class QuantileFinderTest


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

      • QuantileFinderTest

        QuantileFinderTest()
    • Method Detail

      • 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
      • main

        public static void main​(java.lang.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[]
      • test

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

        public static void testBestBandKCalculation​(java.lang.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​(java.lang.String[] args)
      • testRank

        public static void testRank()
        Not yet commented.