Class XppHistogram

 XppWindow 
   |
   +---- XppCanvas 
           |
           +---- XppBarGraph 
                   |
                   +----XppHistogram

Description:
A window specialized for plotting histograms of data points.

Source code:
XppHistogram.h
XppHistogram.c

Examples:

XppHistogram(int width, int height,int x=0, int y=0, char *name="histogram");
Create a histogram window on the root window at position (x,y) with the specified width and height and name. If either x or y is negative then the window must be positioned on the root window using the mouse.

XppHistogram(XppWindow& win, int width, int height, int x = 0, int y = 0);
Create a child histogram window within the parent window win at the relative position (x,y) with width w and height h.

void PlotHistogram(double *x, int dim, double min, double max, int NrOfBins);
Plot a histogram of the points x[i] within the range [min,max], ... 0 <= i < dim. Points outside the interval are ignored. The range is divided into numberOfBins histogram intervals. The percentage of points within each interval is plotted as a bar in the histogram.

void PlotHistogram(double *x, int dim, int numberOfBins);
Plot a histogram of the points x[i], ... 0 <= i < dim. The range of the data points is determined and divided into numberOfBins histogram intervals. The percentage of points within each interval is plotted as a bar in the histogram.


Copyright (c) 1995 Leslie Picardo
All rights reserved