Statistics
Class BasicHistogram

java.lang.Object
  extended byStatistics.BasicHistogram

public class BasicHistogram
extends java.lang.Object

Basic histogram of a random variable able to write ASCII character output which can then be processed by Scigraphica or gri (a graphics programming language) into a postscript histogram. Histogram computed at time t=0, no conditioning.


Constructor Summary
BasicHistogram(RandomVariable X, int N, int bins, double tail)
          Constructor retrieves and bins values.
BasicHistogram(RandomVariable X, int N, int bins, double tail, boolean smoothed)
          Constructor retrieves and bins values.
 
Method Summary
 double getMax()
           
 double getMin()
           
 double nBins()
           
 double normalizedBinHeight(int j)
          Height of bin[j] after area has been normalized to one.
 void writeGriDataFile(java.lang.String filename)
          Writes file "filename.dat" which can be read by the Gri-script "histogram.gri" to produce a postscript histogram.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicHistogram

public BasicHistogram(RandomVariable X,
                      int N,
                      int bins,
                      double tail)
Constructor retrieves and bins values. All the bins in the lowest/highest 100*tail% quartile lumped into a single bin each.

Parameters:
N - number of data values.
bins - number of bins before elimination of tail values.
tail - in (0,1), defines extreme quartiles (lumped together).

BasicHistogram

public BasicHistogram(RandomVariable X,
                      int N,
                      int bins,
                      double tail,
                      boolean smoothed)
Constructor retrieves and bins values. All the bins in the lowest/highest 100*tail% quartile lumped into a single bin each.

Parameters:
N - number of data values.
bins - number of bins before elimination of tail values.
tail - in (0,1), defines extreme quartiles (lumped together).
smoothed - wether or not bin heights are to be smoothed.
Method Detail

getMin

public double getMin()

getMax

public double getMax()

nBins

public double nBins()

normalizedBinHeight

public double normalizedBinHeight(int j)
Height of bin[j] after area has been normalized to one.


writeGriDataFile

public void writeGriDataFile(java.lang.String filename)
                      throws java.io.IOException
Writes file "filename.dat" which can be read by the Gri-script "histogram.gri" to produce a postscript histogram.

Throws:
java.io.IOException