public class AveragingDataSet extends AbstractDataSet<AveragingDataSet>
lock, name, updateListeners, xRange, yRangeTAG_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(DataSet ds) |
void |
clear()
clear all data
|
int |
getAverageCount() |
int |
getAverageSize() |
int |
getDataCount()
Get the number of data points in the data set
|
int |
getDataCount(double xmin,
double xmax)
Gets the number of data points in the range xmin to xmax.
|
int |
getFuzzyCount()
Gets the fuzzy count.
|
String |
getStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
double |
getX(int i)
Gets the x value of the data point with the index i
|
int |
getXIndex(double x)
Gets the index of the data point closest to the given x coordinate.
|
double |
getXMax()
Gets the maximum x value of the data set.
|
double |
getXMin()
Gets the minimum x value of the data set.
|
double |
getY(int i)
Gets the y value of the data point with the index i
|
double |
getYMax()
Gets the maximum y value of the data set.
|
double |
getYMin()
Gets the minimum y value of the data set.
|
double[] |
getYValues() |
void |
setAverageSize(int avgCount) |
void |
setFuzzyCount(int fuzzyCount)
Sets the fuzzy count.
|
binarySearchX, binarySearchY, computeLimits, fireInvalidated, getDataLabel, getErrorList, getInfoList, getMetaInfo, getName, getThis, getUndefValue, getWarningList, getXRange, getYIndex, getYRange, isAutoNotification, lock, minNeigbourSearchX, setAutoNotifaction, setName, toString, unlock, updateEventListenergetStyle, setStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetStyle, getValue, getXValues, setStyleaddListener, invokeListener, invokeListener, removeListenerpublic AveragingDataSet(String name)
name - data set namepublic AveragingDataSet(String name, int fuzzyCount)
name - data set namefuzzyCount - binning accuracy @see #setFuzzyCountpublic int getFuzzyCount()
public void setFuzzyCount(int fuzzyCount)
fuzzyCount - the fuzzy countpublic int getAverageSize()
public void setAverageSize(int avgCount)
avgCount - number of data sets that are supposed to be averagedpublic int getAverageCount()
public void clear()
public void add(DataSet ds)
ds - new DataSet to be added to averagepublic int getDataCount()
DataSetpublic int getDataCount(double xmin,
double xmax)
AbstractDataSetgetDataCount in interface DataSetgetDataCount in class AbstractDataSet<AveragingDataSet>xmin - the lower end of the rangexmax - the upper end of the rangepublic double[] getYValues()
public double getX(int i)
DataSeti - the index of the data pointpublic double getY(int i)
DataSeti - the index of the data pointpublic int getXIndex(double x)
AbstractDataSetgetXIndex in interface DataSetgetXIndex in class AbstractDataSet<AveragingDataSet>x - the x position of the data pointpublic double getXMin()
AbstractDataSetgetXMin in interface DataSetgetXMin in class AbstractDataSet<AveragingDataSet>public double getXMax()
AbstractDataSetgetXMax in interface DataSetgetXMax in class AbstractDataSet<AveragingDataSet>public double getYMin()
AbstractDataSetgetYMin in interface DataSetgetYMin in class AbstractDataSet<AveragingDataSet>public double getYMax()
AbstractDataSetgetYMax in interface DataSetgetYMax in class AbstractDataSet<AveragingDataSet>public String getStyle(int index)
DataSetDataSet data point. @see #getStyle()index - the index of the specific data pointCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.