Package de.gsi.dataset
Interface Histogram1D
-
- All Superinterfaces:
DataSet,DataSetMetaData,EventSource,Histogram,java.io.Serializable
- All Known Implementing Classes:
Histogram
public interface Histogram1D extends Histogram
- Author:
- rstein
-
-
Field Summary
-
Fields inherited from interface de.gsi.dataset.DataSetMetaData
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intfill(double x)Increment bin with abscissa X, Y, and Z by 1.intfill(double x, double w)Increment bin with abscissa X by with a weight w.voidfillN(double[] x, double[] w, int stepSize)Fill this histogram with an array x and weights w.-
Methods inherited from interface de.gsi.dataset.DataSet
get, getAxisDescription, getAxisDescriptions, getDataCount, getDataCount, getDataLabel, getDimension, getIndex, getName, getStyle, getStyle, getValue, getValues, lock, recomputeLimits, setStyle
-
Methods inherited from interface de.gsi.dataset.DataSetMetaData
getErrorList, getInfoList, getMetaInfo, getWarningList
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListener
-
Methods inherited from interface de.gsi.dataset.Histogram
addBinContent, addBinContent, findBin, findBin, findBin, getBinCenter, getBinContent, isEquiDistant, reset
-
-
-
-
Method Detail
-
fill
default int fill(double x)
Increment bin with abscissa X, Y, and Z by 1. if x is less than the low-edge of the first bin, the Underflow bin is incremented if x is equal to or greater than the upper edge of last bin, the Overflow bin is incremented The function returns the corresponding bin number which has its content incremented by 1- Parameters:
x- new value to be added- Returns:
- corresponding bin number which has its content incremented by 1
-
fill
int fill(double x, double w)Increment bin with abscissa X by with a weight w. if x is less than the low-edge of the first bin, the Underflow bin is incremented if x is equal to or greater than the upper edge of last bin, the Overflow bin is incremented The function returns the corresponding bin number which has its content incremented by 1- Parameters:
x- new value to be addedw- weight- Returns:
- corresponding bin number which has its content incremented by 1
-
fillN
void fillN(double[] x, double[] w, int stepSize)Fill this histogram with an array x and weights w.- Parameters:
x- x coordinates to be added.w- weights to be added.stepSize- step size through arrays x and w
-
-