Java Reference
In-Depth Information
{ return fXLabel; }
/** Set the horizontal axis label. **/
public void setXLabel (String xLabel)
{ fXLabel = xLabel; }
/** Get the low end of the range. **/
public double getLo ()
{ return fLo; }
/** Get the high end of the range.**/
public double getHi ()
{ return fHi; }
/** Get the number of entries in the largest bin. **/
public int getMax () {
int max = 0;
for (int i=0; i < fNumBins; i++)
if (max < fBins[i]) max = fBins[i];
return max;
}
/**
* This method returns a reference to the fBins array.
* Note that this means the values of the histogram
* could be altered by the calling code.
**/
public int[] getBins () {
return fBins;
}
/** Get the number of entries in the smallest bin.**/
public int getMin () {
int min = getMax ();
for (int i=0; i < fNumBins; i++)
if (min > fBins[i]) min = fBins[i];
return min;
}
/** Get the total number of entries not counting
* overflows and underflows.
**/
 
Search WWH ::




Custom Search