soot.jimple.spark.geom.geomPA
Class Histogram

java.lang.Object
  extended by soot.jimple.spark.geom.geomPA.Histogram

public class Histogram
extends Object


Constructor Summary
Histogram(int[] limits)
           
 
Method Summary
 void addNumber(int num)
           
 int getResult(int inx)
           
 int getTotalNumofSamples()
           
 void merge(Histogram other)
          Merge two histograms.
 void printResult(PrintStream output)
           
 void printResult(PrintStream output, String title)
           
 void printResult(PrintStream output, String title, Histogram other)
          This function prints two histograms together for comparative reading.
 void scaleToSamples(int usrSamples)
          Use the current distribution but scale the samples close to the user specified one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Histogram

public Histogram(int[] limits)
Method Detail

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)