Package cern.jet.stat.quantile
Class QuantileFinderTest
- java.lang.Object
-
- cern.jet.stat.quantile.QuantileFinderTest
-
class QuantileFinderTest extends java.lang.Object
A 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 IntArrayList
binaryMultiSearch(DoubleArrayList list, double element)
Finds the first and last indexes of a specific element within a sorted list.static double
epsilon(int size, double phi, double rank)
Observed epsilonstatic double
epsilon(DoubleArrayList sortedList, double phi, double element)
Observed epsilonstatic double
epsilon(DoubleArrayList sortedList, DoubleQuantileFinder finder, double phi)
Observed epsilonstatic void
main(java.lang.String[] args)
static double
observedEpsilonAtPhi(double phi, ExactDoubleQuantileFinder exactFinder, DoubleQuantileFinder approxFinder)
This method was created in VisualAge.static DoubleArrayList
observedEpsilonsAtPhis(DoubleArrayList phis, ExactDoubleQuantileFinder exactFinder, DoubleQuantileFinder approxFinder, double desiredEpsilon)
This method was created in VisualAge.static void
test()
Not yet commented.static void
testBestBandKCalculation(java.lang.String[] args)
This method was created in VisualAge.static void
testLocalVarDeclarationSpeed(int size)
This method was created in VisualAge.static void
testQuantileCalculation(java.lang.String[] args)
static void
testRank()
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.
-
-