Package cern.jet.stat.quantile
Class QuantileFinderTest
- java.lang.Object
-
- cern.jet.stat.quantile.QuantileFinderTest
-
class QuantileFinderTest extends java.lang.ObjectA class holding test cases for exact and approximate quantile finders.
-
-
Constructor Summary
Constructors Constructor Description QuantileFinderTest()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static IntArrayListbinaryMultiSearch(DoubleArrayList list, double element)Finds the first and last indexes of a specific element within a sorted list.static doubleepsilon(int size, double phi, double rank)Observed epsilonstatic doubleepsilon(DoubleArrayList sortedList, double phi, double element)Observed epsilonstatic doubleepsilon(DoubleArrayList sortedList, DoubleQuantileFinder finder, double phi)Observed epsilonstatic voidmain(java.lang.String[] args)static doubleobservedEpsilonAtPhi(double phi, ExactDoubleQuantileFinder exactFinder, DoubleQuantileFinder approxFinder)This method was created in VisualAge.static DoubleArrayListobservedEpsilonsAtPhis(DoubleArrayList phis, ExactDoubleQuantileFinder exactFinder, DoubleQuantileFinder approxFinder, double desiredEpsilon)This method was created in VisualAge.static voidtest()Not yet commented.static voidtestBestBandKCalculation(java.lang.String[] args)This method was created in VisualAge.static voidtestLocalVarDeclarationSpeed(int size)This method was created in VisualAge.static voidtestQuantileCalculation(java.lang.String[] args)static voidtestRank()Not yet commented.
-
-
-
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.DoubleArrayListelement- 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(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.DoubleArrayListphis- double[]- Returns:
- double[]
-
observedEpsilonsAtPhis
public static DoubleArrayList observedEpsilonsAtPhis(DoubleArrayList phis, ExactDoubleQuantileFinder exactFinder, DoubleQuantileFinder approxFinder, double desiredEpsilon)
This method was created in VisualAge.- Parameters:
values- cern.it.hepodbms.primitivearray.DoubleArrayListphis- 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.
-
-