public class Histogram2 extends AbstractHistogram implements Histogram2D
| Modifier and Type | Field and Description |
|---|---|
protected Histogram |
xProjection |
protected Histogram |
yProjection |
dataLabels, dataStyleszRangelock, name, updateListeners, xRange, yRangeTAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
Histogram2(String name,
int nBinsX,
double minX,
double maxX,
int nBinsY,
double minY,
double maxY)
Creates 2D histogram with name and ranges [minX, maxX] and [minY, maxY]
|
| Modifier and Type | Method and Description |
|---|---|
int |
fill(double x,
double y)
Increment bin with abscissa X, Y, and Z by 1.
|
int |
fill(double x,
double y,
double w)
Increment bin with abscissa X by with a weight w.
|
int |
findFirstBinAbove(double x,
double y) |
List<String> |
getErrorList() |
List<String> |
getInfoList() |
Histogram1D |
getProjectionX() |
Histogram1D |
getProjectionY() |
protected double |
getSumX(int bin) |
protected double |
getSumY(int bin) |
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.
|
double |
getZ(int xIndex,
int yIndex)
Returns Z coordinate for the specified data point.
|
void |
reset()
reset histogram content
|
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, setcomputeLimits, getDataCount, getXIndex, getYIndex, getZRangebinarySearchX, binarySearchY, fireInvalidated, getDataCount, getMetaInfo, getName, getThis, getUndefValue, getXMax, getXMin, getXRange, getYMax, getYMin, getYRange, isAutoNotification, lock, minNeigbourSearchX, setAutoNotifaction, setName, toString, unlock, updateEventListenergetStyle, setStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindBingetDataCount, getDataCount, getName, getStyle, getUndefValue, getValue, getXIndex, getXMax, getXMin, getXValues, getYIndex, getYMax, getYMin, getYValues, isAutoNotification, lock, setAutoNotifaction, setStyle, unlockaddListener, invokeListener, invokeListener, removeListener, updateEventListenergetMetaInfoprotected final Histogram xProjection
protected final Histogram yProjection
public Histogram2(String name, int nBinsX, double minX, double maxX, int nBinsY, double minY, double maxY)
name - of the data setsnBinsX - number of horizontal binsminX - minimum of horizontal rangemaxX - maximum of horizontal rangenBinsY - number of vertical binsminY - minimum of vertical rangemaxY - maximum of vertical rangepublic Histogram1D getProjectionX()
public Histogram1D getProjectionY()
public void reset()
Histogramreset in interface Histogramreset in class AbstractHistogrampublic double getZ(int xIndex,
int yIndex)
DataSet3Dpublic int getXDataCount()
DataSet3DgetXDataCount in interface DataSet3Dpublic int getYDataCount()
DataSet3DgetYDataCount in interface DataSet3Dpublic double getX(int i)
DataSetpublic double getY(int i)
DataSetpublic int fill(double x,
double y)
Histogram2Dfill in interface Histogram2Dx - new value to be addedy - new value to be addedpublic int fill(double x,
double y,
double w)
Histogram2Dfill in interface Histogram2Dx - new value to be addedy - new value to be addedw - weightpublic int findFirstBinAbove(double x,
double y)
findFirstBinAbove in interface Histogram2Dx - spatial real-valued coordinate in Xy - spatial real-valued coordinate in Ypublic List<String> getInfoList()
getInfoList in interface DataSetMetaDatagetInfoList in class AbstractDataSet<AbstractHistogram>protected double getSumX(int bin)
protected double getSumY(int bin)
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.