tests_of_fit
Class Histo

java.lang.Object
  |
  +--tests_of_fit.Histo

public class Histo
extends java.lang.Object

This class provides the x,y pairs needed by a graphics routine to produce a histogram.

It assumes that the data has already been sorted.


Field Summary
 int ifail
           
 int npts
           
 double xmax
           
 double xmin
           
 double[] xpl
           
 double ymax
           
 double ymin
           
 double[] ypl
           
 
Constructor Summary
Histo()
           
 
Method Summary
 void generate(double[] sorted_data, int n, int numcells, int norm, Histo histo)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ifail

public int ifail

xpl

public double[] xpl

ypl

public double[] ypl

xmin

public double xmin

xmax

public double xmax

ymin

public double ymin

ymax

public double ymax

npts

public int npts
Constructor Detail

Histo

public Histo()
Method Detail

generate

public void generate(double[] sorted_data,
                     int n,
                     int numcells,
                     int norm,
                     Histo histo)

Parameters:
n - The number of data points.
numcells - The number of "cells" (locations for bars) in the histogram.
norm - On input, norm should be set to 0 if the histogram is supposed to contain raw counts. It should be set to 1 if the histogram is supposed to contain normalized counts.
histo - Histogram object returned by the generate method. This object contains the information needed by a graphics program to produce the histogram (see xpl,ypl,xmin, xmax,ymin,ymax,npts).