All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tests_of_fit.Histo

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

public class Histo
extends 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.


Variable Index

 o ifail
 o npts
 o xmax
 o xmin
 o xpl
 o ymax
 o ymin
 o ypl

Constructor Index

 o Histo()

Method Index

 o generate(double[], int, int, int, Histo)

Variables

 o ifail
 public int ifail
 o xpl
 public double xpl[]
 o ypl
 public double ypl[]
 o xmin
 public double xmin
 o xmax
 public double xmax
 o ymin
 public double ymin
 o ymax
 public double ymax
 o npts
 public int npts

Constructors

 o Histo
 public Histo()

Methods

 o 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).

All Packages  Class Hierarchy  This Package  Previous  Next  Index