meshi.util.histogram
Class Histogram

java.lang.Object
  extended by SortableMeshiList
      extended by meshi.util.histogram.Histogram

public class Histogram
extends SortableMeshiList


Nested Class Summary
(package private) static class Histogram.BinCreator
           
(package private) static class Histogram.IsBin
           
private  class Histogram.RepresentativesIterator
           
 
Field Summary
private  int aboveHigh
           
private  int belowLow
           
private  double highBound
           
private  double histFactor
           
private  double lowBound
           
private  int nBins
           
private  int sum
           
 
Constructor Summary
Histogram(double low, double high, int n)
           
 
Method Summary
private  double centerOfBin(int bin)
           
 void event(double x)
           
 double highBound()
           
 HistogramBin highestPeak()
           
 HistogramBin HistogramBinAt(double x)
           
 HistogramBin HistogramBinAt(int pos)
           
 double lowBound()
           
 int nBins()
           
private  int pos(double x)
           
 void print()
           
 HistogramBin representative(double fraction)
           
 java.util.Iterator representativesIterator(double fractionThreshold)
           
 boolean sortable()
           
 double sum()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lowBound

private double lowBound

highBound

private double highBound

nBins

private int nBins

histFactor

private double histFactor

belowLow

private int belowLow

aboveHigh

private int aboveHigh

sum

private int sum
Constructor Detail

Histogram

public Histogram(double low,
                 double high,
                 int n)
Method Detail

pos

private int pos(double x)

centerOfBin

private double centerOfBin(int bin)

event

public void event(double x)

HistogramBinAt

public HistogramBin HistogramBinAt(int pos)

HistogramBinAt

public HistogramBin HistogramBinAt(double x)

lowBound

public double lowBound()

highBound

public double highBound()

nBins

public int nBins()

highestPeak

public HistogramBin highestPeak()

print

public void print()

sortable

public boolean sortable()

sum

public double sum()

representativesIterator

public java.util.Iterator representativesIterator(double fractionThreshold)

representative

public HistogramBin representative(double fraction)