public class AveragingDataSet extends AbstractDataSet<AveragingDataSet> implements DataSet2D
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
AveragingDataSet(String name) |
AveragingDataSet(String name,
int fuzzyCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(DataSet2D ds) |
void |
clear()
clear all data
|
double |
get(int dimIndex,
int index)
Gets the x value of the data point with the index i
|
int |
getAverageCount() |
int |
getAverageSize() |
int |
getDataCount(int dimIndex)
Get the number of data points in the data set for a specific dimension.
|
int |
getFuzzyCount()
Gets the fuzzy count.
|
String |
getStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
int |
getXIndex(double x)
Gets the index of the data point closest to the given x coordinate.
|
double[] |
getYValues() |
void |
setAverageSize(int avgCount) |
void |
setFuzzyCount(int fuzzyCount)
Sets the fuzzy count.
|
addDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, fireInvalidated, getAxisDescriptions, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getThis, getWarningList, hashCode, lock, minNeigbourSearchX, recomputeLimits, removeDataLabel, removeStyle, setEditConstraints, setName, toString, updateEventListenergetStyle, setStyleclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDimension, getValue, getValue, getX, getXValues, getY, getYIndexgetAxisDescription, getAxisDescriptions, getDataCount, getDataLabel, getIndex, getName, getStyle, getValues, lock, recomputeLimits, setStyleaddListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenerpublic AveragingDataSet(String name)
name - data set namepublic AveragingDataSet(String name, int fuzzyCount)
name - data set namefuzzyCount - binning accuracy @see #setFuzzyCountpublic void add(DataSet2D ds)
ds - new DataSet to be added to averagepublic void clear()
public int getAverageCount()
public int getAverageSize()
public int getDataCount(int dimIndex)
DataSetgetDataCount in interface DataSetdimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')public int getFuzzyCount()
public String getStyle(int index)
AbstractDataSetDataSet data point. @see
#getStyle()getStyle in interface DataSetgetStyle in class AbstractDataSet<AveragingDataSet>index - the index of the specific data pointpublic final double get(int dimIndex,
int index)
DataSetpublic int getXIndex(double x)
DataSet2Dpublic double[] getYValues()
getYValues in interface DataSet2Dpublic void setAverageSize(int avgCount)
avgCount - number of data sets that are supposed to be averagedpublic void setFuzzyCount(int fuzzyCount)
fuzzyCount - the fuzzy countCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.