public class FifoDoubleErrorDataSet extends AbstractErrorDataSet<DoubleErrorDataSet> implements DataSet2D, DataSetError
| Modifier and Type | Class and Description |
|---|---|
protected class |
FifoDoubleErrorDataSet.DataBlob |
class |
FifoDoubleErrorDataSet.LimitedQueue<E> |
DataSetError.ErrorType| Modifier and Type | Field and Description |
|---|---|
protected FifoDoubleErrorDataSet.LimitedQueue<FifoDoubleErrorDataSet.DataBlob> |
data |
protected double |
maxDistance |
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
FifoDoubleErrorDataSet(String name,
int initalSize)
Creates a new instance of
FifoDoubleErrorDataSet. |
FifoDoubleErrorDataSet(String name,
int initalSize,
double maxDistance)
Creates a new instance of
FifoDoubleErrorDataSet. |
| Modifier and Type | Method and Description |
|---|---|
FifoDoubleErrorDataSet |
add(double[] xValues,
double[] yValues,
double[] yErrorsNeg,
double[] yErrorsPos)
Initialises the data set with specified data.
|
FifoDoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos)
Add point to the DoublePoints object
|
FifoDoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos,
String tag)
Add point to the DoublePoints object
|
FifoDoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos,
String tag,
String style)
Add point to the DoublePoints object
|
int |
expire(double now)
expire data points that are older than now minus length of the buffer, notifies a 'fireInvalidated()' in case
data has been removed
|
double |
get(int dimIndex,
int index)
Gets the x value of the data point with the index i
|
int |
getDataCount(int dimIndex)
Get the number of data points in the data set for a specific dimension.
|
String |
getDataLabel(int index)
Returns label of a data point specified by the index.
|
double |
getErrorNegative(int dimIndex,
int index)
Returns the negative error along the 'dimIndex' axis of a point specified by the
index. |
double |
getErrorPositive(int dimIndex,
int index)
Returns the positive error along the 'dimIndex' axis of a point specified by the
index. |
double |
getMaxDistance() |
String |
getStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
void |
reset()
remove all data points
|
void |
setMaxDistance(double maxDistance) |
fireInvalidated, getErrorType, getThis, lock, recomputeLimits, setErrorTypeaddDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, getAxisDescriptions, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getWarningList, hashCode, minNeigbourSearchX, removeDataLabel, removeStyle, setEditConstraints, setName, toString, updateEventListenergetStyle, setStyleclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDimension, getValue, getValue, getX, getXIndex, getXValues, getY, getYIndex, getYValuesgetErrorNegative, getErrorPositive, getErrorsNegative, getErrorsPositive, getErrorTypegetAxisDescription, getAxisDescriptions, getDataCount, getIndex, getName, getStyle, getValues, lock, recomputeLimits, setStyleaddListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenerprotected FifoDoubleErrorDataSet.LimitedQueue<FifoDoubleErrorDataSet.DataBlob> data
protected double maxDistance
public FifoDoubleErrorDataSet(String name, int initalSize)
FifoDoubleErrorDataSet.name - name of this DataSet.initalSize - maximum circular buffer capacityIllegalArgumentException - if name is nullpublic FifoDoubleErrorDataSet(String name, int initalSize, double maxDistance)
FifoDoubleErrorDataSet.name - name of this DataSet.initalSize - maximum circular buffer capacitymaxDistance - maximum range before data points are being droppedIllegalArgumentException - if name is nullpublic FifoDoubleErrorDataSet add(double x, double y, double yErrorNeg, double yErrorPos)
x - the new x coordinatey - the new y coordinateyErrorNeg - the +dy erroryErrorPos - the -dy errorpublic FifoDoubleErrorDataSet add(double x, double y, double yErrorNeg, double yErrorPos, String tag)
x - the new x coordinatey - the new y coordinateyErrorNeg - the +dy erroryErrorPos - the -dy errortag - the data tagpublic FifoDoubleErrorDataSet add(double x, double y, double yErrorNeg, double yErrorPos, String tag, String style)
x - the new x coordinatey - the new y coordinateyErrorNeg - the +dy erroryErrorPos - the -dy errortag - the data tagstyle - the data point stylepublic FifoDoubleErrorDataSet add(double[] xValues, double[] yValues, double[] yErrorsNeg, double[] yErrorsPos)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - the new x coordinatesyValues - the new y coordinatesyErrorsNeg - the +dy errorsyErrorsPos - the -dy errorspublic int expire(double now)
now - the newest time-stamppublic int getDataCount(int dimIndex)
DataSetgetDataCount in interface DataSetdimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')public String getDataLabel(int index)
AbstractDataSetgetDataLabel in interface DataSetgetDataLabel in class AbstractDataSet<DoubleErrorDataSet>index - of the data labelnull if no label has been specifiedpublic double getErrorNegative(int dimIndex,
int index)
DataSetErrorindex. Please note
that errors are assumed to be always positive!getErrorNegative in interface DataSetErrordimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')index - of negative 'dimIndex' error to be returned.public double getErrorPositive(int dimIndex,
int index)
DataSetErrorindex. Please note
that errors are assumed to be always positive!getErrorPositive in interface DataSetErrordimIndex - the dimension index (ie. '0' equals 'X', '1' equals 'Y')index - of positive 'dimIndex' error to be returned.public double getMaxDistance()
public String getStyle(int index)
AbstractDataSetDataSet data point. @see
#getStyle()getStyle in interface DataSetgetStyle in class AbstractDataSet<DoubleErrorDataSet>index - the index of the specific data pointpublic final double get(int dimIndex,
int index)
DataSetpublic void reset()
public void setMaxDistance(double maxDistance)
maxDistance - maximum range before data points are being droppedCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.