com.meapsoft
Class BasicHist

java.lang.Object
  extended bycom.meapsoft.BasicHist

public class BasicHist
extends java.lang.Object

A simple histogram class to count the frequency of values of a parameter of interest.


Constructor Summary
BasicHist(int numBins, double lo, double hi)
          The constructor will create an array of a given number of bins.
 
Method Summary
 void add(double x)
          Add an entry to a bin.
 void clear()
          Clear the histogram bins.
 int getValue(int bin)
          Provide access to the bin values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicHist

public BasicHist(int numBins,
                 double lo,
                 double hi)
The constructor will create an array of a given number of bins. The range of the histogram given by the upper and lower limt values.

Method Detail

add

public void add(double x)
Add an entry to a bin. Include if value is in the range lo <= x < hi


clear

public void clear()
Clear the histogram bins.


getValue

public int getValue(int bin)
Provide access to the bin values.