Package difar.calibration
Class CalibrationHistogram
java.lang.Object
java.util.Observable
PamUtils.TimedObservable
pamMaths.PamHistogram
difar.calibration.CalibrationHistogram
- All Implemented Interfaces:
Cloneable
Contains data for a Difar calibration histogram. This is a bit of a mod
of the standard histogram
- Author:
- doug
-
Constructor Summary
ConstructorDescriptionCalibrationHistogram
(DifarControl difarControl, int channel, double maxAngle) -
Method Summary
Methods inherited from class pamMaths.PamHistogram
addData, addData, getBin, getBinCentre, getBinCentreValues, getBinEdgeValues, getData, getHiBin, getKurtosis, getLoBin, getMaxContent, getMaxVal, getMinVal, getMode, getName, getNBins, getScaleMaxVal, getScaleMinVal, getSkew, getStep, getTotalContent, getVariance, isBinCentres, printSummary, printSummary, scaleData, setBinCentres, setData, setName, setRange, toString
Methods inherited from class PamUtils.TimedObservable
getDelay, notifyObservers, notifyObservers, notifyObservers, setDelay
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged
-
Constructor Details
-
CalibrationHistogram
-
-
Method Details
-
addData
public void addData(double newData) Add new data to the histogram- Overrides:
addData
in classPamHistogram
- Parameters:
newData
- data to add to histogram.
-
getMean
public double getMean()Description copied from class:PamHistogram
Calculate the mean of the histogram data- Overrides:
getMean
in classPamHistogram
- Returns:
- mean value
-
getSTD
public double getSTD()Description copied from class:PamHistogram
Return the standard deviation of the histogram data- Overrides:
getSTD
in classPamHistogram
- Returns:
- standard deviation
-
clear
public void clear()Description copied from class:PamHistogram
Clear all histogram contents- Overrides:
clear
in classPamHistogram
-
getChannel
public int getChannel()- Returns:
- the channel
-