public class Histogram extends AbstractHistogram implements Histogram1D
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isHorizontal |
dataLabels, dataStyleszRangelock, name, updateListeners, xRange, yRangeTAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
Histogram(String name,
double[] xBins)
Creates histogram with name and range [minX, maxX]
|
Histogram(String name,
double[] xBins,
boolean horizontal)
Creates histogram with name and range [minX, maxX]
|
Histogram(String name,
int nBins,
double minX,
double maxX)
Creates histogram with name and range [minX, maxX]
|
Histogram(String name,
int nBins,
double minX,
double maxX,
boolean horizontal)
Creates histogram with name and range [minX, maxX]
|
| Modifier and Type | Method and Description |
|---|---|
protected Histogram |
computeLimits()
recompute data set limits
|
int |
fill(double x)
Increment bin with abscissa X, Y, and Z by 1.
|
int |
fill(double x,
double w)
Increment bin with abscissa X by with a weight w.
|
int |
fill(String name)
Increment bin with name with by 1.
|
int |
fill(String name,
double w)
Increment bin with name with a weight w.
|
void |
fillN(double[] x,
double[] w,
int stepSize)
Fill this histogram with an array x and weights w.
|
int |
getDataCount()
Get the number of data points in the data set
|
List<String> |
getErrorList() |
List<String> |
getInfoList() |
List<String> |
getWarningList() |
double |
getX(int i)
Gets the x value of the data point with the index i
|
int |
getXDataCount()
Returns number of X coordinates.
|
double |
getY(int i)
Gets the y value of the data point with the index i
|
int |
getYDataCount()
Returns number of Y coordinates.
|
DataRange |
getYRange() |
double |
getZ(int xIndex,
int yIndex)
Returns Z coordinate for the specified data point.
|
addBinContent, addBinContent, addDataLabel, addDataStyle, findBin, findBin, findBin, findBinX, findBinY, findBinZ, findNextLargerIndex, getBinCenterX, getBinCenterY, getBinCenterZ, getBinContent, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getMaximum, getMinimum, getNBinsX, getNBinsY, getNBinsZ, getStyle, getValueRange, isEquiDistant, removeDataLabel, removeStyle, reset, setgetXIndex, getYIndex, getZRangebinarySearchX, binarySearchY, fireInvalidated, getDataCount, getMetaInfo, getName, getThis, getUndefValue, getXMax, getXMin, getXRange, getYMax, getYMin, isAutoNotification, lock, minNeigbourSearchX, setAutoNotifaction, setName, toString, unlock, updateEventListenergetStyle, setStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddBinContent, addBinContent, findBin, findBin, findBin, getBinCenterX, getBinCenterY, getBinCenterZ, getBinContent, getDimension, getMaximum, getMinimum, getNBinsX, getNBinsY, getNBinsZ, isEquiDistant, resetgetDataCount, getDataLabel, getName, getStyle, getStyle, getUndefValue, getValue, getXIndex, getXMax, getXMin, getXValues, getYIndex, getYMax, getYMin, getYValues, isAutoNotification, lock, setAutoNotifaction, setStyle, unlockaddListener, invokeListener, invokeListener, removeListener, updateEventListenergetMetaInfopublic Histogram(String name, int nBins, double minX, double maxX, boolean horizontal)
name - of the data setsnBins - number of binsminX - minimum of rangemaxX - maximum of rangehorizontal - whether binning is performed in Xpublic Histogram(String name, int nBins, double minX, double maxX)
name - of the data setsnBins - number of binsminX - minimum of rangemaxX - maximum of rangepublic Histogram(String name, double[] xBins, boolean horizontal)
name - of the data setsxBins - the initial bin array (defines [minX, maxX] and nBins)horizontal - whether binning is performed in Xpublic Histogram(String name, double[] xBins)
name - of the data setsxBins - the initial bin array (defines [minX, maxX] and nBins)public int getDataCount()
getDataCount in interface DataSetgetDataCount in class AbstractDataSet3D<AbstractHistogram>public int getXDataCount()
DataSet3DgetXDataCount in interface DataSet3Dpublic int getYDataCount()
DataSet3DgetYDataCount in interface DataSet3Dpublic double getX(int i)
DataSetpublic double getY(int i)
DataSetpublic DataRange getYRange()
getYRange in class AbstractDataSet<AbstractHistogram>public int fill(double x)
Histogram1Dfill in interface Histogram1Dx - new value to be addedpublic int fill(double x,
double w)
Histogram1Dfill in interface Histogram1Dx - new value to be addedw - weightpublic int fill(String name)
Histogram1Dfill in interface Histogram1Dname - name to be addedpublic int fill(String name, double w)
Histogram1Dfill in interface Histogram1Dname - name to be addedw - weight for given namepublic void fillN(double[] x,
double[] w,
int stepSize)
Histogram1DfillN in interface Histogram1Dx - x coordinates to be added.w - weights to be added.stepSize - step size through arrays x and wpublic double getZ(int xIndex,
int yIndex)
DataSet3Dpublic List<String> getInfoList()
getInfoList in interface DataSetMetaDatagetInfoList in class AbstractDataSet<AbstractHistogram>protected Histogram computeLimits()
AbstractDataSet3DcomputeLimits in class AbstractDataSet3D<AbstractHistogram>public List<String> getWarningList()
getWarningList in interface DataSetMetaDatagetWarningList in class AbstractDataSet<AbstractHistogram>public List<String> getErrorList()
getErrorList in interface DataSetMetaDatagetErrorList in class AbstractDataSet<AbstractHistogram>Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.