hist
Class rawHist

public class rawHist
extends hist
Method Detail

getLeadingEmpty

public int getLeadingEmpty(int[] f)
return the first observation with 0 frequency

setOffset2

public void setOffset2()
set up the offset2 for super class hist to control the bins

reFigure

void reFigure()
bins already defined, recalculate the frequencies and center points to redraw the histogram.

reDraw

public void reDraw()
redraw the histogram according to existing dataset X[], frequency interval height, and bin starting position parameter a0

bin

public hist.histData bin(double[] X,
                         double h,
                         double a0)
According to the existing dataset X, frequency height, and bin starting position parameter a0, recalculate the center points and their frequencies for the dataset, to be used in reDraw procedure to repaint the histogram

cv

public double cv(double[] X,
                 double h,
                 double a0)
Calculate the cross-validation according to the bin set up