public class Histogram2 extends AbstractHistogram implements Histogram2D, DataSet3D
| Modifier and Type | Field and Description |
|---|---|
protected Histogram |
xProjection |
protected Histogram |
yProjection |
axisBins, data, nAxisBinsTAG_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) |
double |
get(int dimIndex,
int binIndex)
Gets the x value of the data point with the index i
|
int |
getDataCount()
Get the number of data points in the data set.
|
List<String> |
getErrorList() |
int |
getIndex(int dimIndex,
double value)
Gets the index of the data point closest to the given x coordinate.
|
List<String> |
getInfoList() |
Histogram1D |
getProjectionX() |
Histogram1D |
getProjectionY() |
protected double |
getSum(int dimIndex,
int bin) |
double |
getValue(int dimIndex,
double x)
Gets the interpolated y value of the data point for given x coordinate
|
List<String> |
getWarningList() |
double |
getZ(int xIndex,
int yIndex)
Returns Z coordinate for the specified data point.
|
void |
reset()
reset histogram content
|
addBinContent, addBinContent, findBin, findBin, findBin, findNextLargerIndex, getBinCenter, getBinContent, getDataCount, isEquiDistantaddDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, fireInvalidated, getAxisDescriptions, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getMetaInfo, getName, getStyle, getThis, hashCode, lock, minNeigbourSearchX, recomputeLimits, removeDataLabel, removeStyle, setEditConstraints, setName, toString, updateEventListenergetStyle, setStyleclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindBingetDimensiongetDataCount, getValue, getX, getXIndex, getXValues, getY, getYIndex, getYValuesgetAxisDescription, getAxisDescriptions, getDataLabel, getName, getStyle, getStyle, getValues, lock, recomputeLimits, setStyleaddListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, 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 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 double get(int dimIndex,
int binIndex)
DataSetpublic int getDataCount()
DataSet2DgetDataCount in interface DataSetgetDataCount in interface DataSet2Dpublic List<String> getErrorList()
getErrorList in interface DataSetMetaDatagetErrorList in class AbstractDataSet<AbstractHistogram>public int getIndex(int dimIndex,
double value)
AbstractDataSetgetIndex in interface DataSetgetIndex in class AbstractDataSet<AbstractHistogram>dimIndex - the dimension indexvalue - the x position of the data point#public List<String> getInfoList()
getInfoList in interface DataSetMetaDatagetInfoList in class AbstractDataSet<AbstractHistogram>public Histogram1D getProjectionX()
public Histogram1D getProjectionY()
protected double getSum(int dimIndex,
int bin)
public double getValue(int dimIndex,
double x)
DataSet2Dpublic List<String> getWarningList()
getWarningList in interface DataSetMetaDatagetWarningList in class AbstractDataSet<AbstractHistogram>public double getZ(int xIndex,
int yIndex)
Histogram2DgetZ in interface DataSet3DgetZ in interface Histogram2DxIndex - index of X coordinateyIndex - index of Y coordinatepublic void reset()
Histogramreset in interface Histogramreset in class AbstractHistogramCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.