soot.jimple.spark.geom.geomPA
Class Histogram
java.lang.Object
soot.jimple.spark.geom.geomPA.Histogram
public class Histogram
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Histogram
public Histogram(int[] limits)
printResult
public void printResult(PrintStream output)
printResult
public void printResult(PrintStream output,
String title)
printResult
public void printResult(PrintStream output,
String title,
Histogram other)
- This function prints two histograms together for comparative reading.
It requires the two histograms having the same data separators.
- Parameters:
output
- title
- other
-
addNumber
public void addNumber(int num)
merge
public void merge(Histogram other)
- Merge two histograms.
- Parameters:
other
-
getTotalNumofSamples
public int getTotalNumofSamples()
scaleToSamples
public void scaleToSamples(int usrSamples)
- Use the current distribution but scale the samples close to the user specified one
- Parameters:
usrSamples
-
getResult
public int getResult(int inx)