meshi.util.histogram
Class HistogramBin

java.lang.Object
  extended by meshi.util.histogram.HistogramBin
All Implemented Interfaces:
java.lang.Comparable

public class HistogramBin
extends java.lang.Object
implements java.lang.Comparable


Field Summary
private  double centerValue
           
private  double fractionOfOccurrences
           
private  Histogram histogram
           
private  int numberOfOccurrences
           
private  int position
           
 
Constructor Summary
HistogramBin(double center, int pos)
           
HistogramBin(double center, int pos, Histogram histogram)
           
 
Method Summary
 double centerValue()
           
 int compareTo(java.lang.Object obj)
           
 double fractionOfOccurrences()
           
 double fractionOfOccurrences(int sum)
           
 HistogramBin increment()
           
 int numberOfOccurrences()
           
 int position()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

centerValue

private double centerValue

position

private int position

numberOfOccurrences

private int numberOfOccurrences

fractionOfOccurrences

private double fractionOfOccurrences

histogram

private Histogram histogram
Constructor Detail

HistogramBin

public HistogramBin(double center,
                    int pos)

HistogramBin

public HistogramBin(double center,
                    int pos,
                    Histogram histogram)
Method Detail

centerValue

public double centerValue()

fractionOfOccurrences

public double fractionOfOccurrences(int sum)

fractionOfOccurrences

public double fractionOfOccurrences()

numberOfOccurrences

public int numberOfOccurrences()

increment

public HistogramBin increment()

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

position

public int position()