public class FifoDoubleErrorDataSet extends AbstractErrorDataSet<DoubleErrorDataSet> implements 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 |
lock, name, updateListeners, xRange, yRangeTAG_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
|
int |
getDataCount()
Get the number of data points in the data set
|
String |
getDataLabel(int index)
Returns label of a data 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. |
double |
getX(int index)
Gets the x value of the data point with the index i
|
double |
getXErrorNegative(int index)
Returns the negative error along the X axis of a point specified by the
index. |
double |
getXErrorPositive(int index)
Returns the positive error along the X axis of a point specified by the
index. |
double |
getY(int index)
Gets the y value of the data point with the index i
|
double |
getYErrorNegative(int index)
Returns the negative error along the Y axis of a point specified by the
index. |
double |
getYErrorPositive(int index)
Returns the positive error along the Y axis of a point specified by the
index. |
void |
reset()
remove all data points
|
void |
setMaxDistance(double maxDistance) |
computeLimits, getErrorType, getThis, setErrorTypebinarySearchX, binarySearchY, fireInvalidated, getDataCount, getErrorList, getInfoList, getMetaInfo, getName, getUndefValue, getWarningList, getXIndex, getXMax, getXMin, getXRange, getYIndex, getYMax, getYMin, getYRange, isAutoNotification, lock, minNeigbourSearchX, setAutoNotifaction, setName, toString, unlock, updateEventListenergetStyle, setStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetErrorType, getXErrorNegative, getXErrorPositive, getXErrorsNegative, getXErrorsPositive, getYErrorNegative, getYErrorPositive, getYErrorsNegative, getYErrorsPositivegetDataCount, getName, getStyle, getUndefValue, getValue, getXIndex, getXMax, getXMin, getXValues, getYIndex, getYMax, getYMin, getYValues, isAutoNotification, lock, setAutoNotifaction, setStyle, unlockaddListener, invokeListener, invokeListener, 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 double getMaxDistance()
public void setMaxDistance(double maxDistance)
maxDistance - maximum range before data points are being droppedpublic double getX(int index)
DataSetpublic double getY(int index)
DataSetpublic String getStyle(int index)
DataSetDataSet data point. @see #getStyle()public double getXErrorNegative(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!getXErrorNegative in interface DataSetErrorindex - of negative X error to be returned.public double getXErrorPositive(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!getXErrorPositive in interface DataSetErrorindex - of positive X error to be returned.public double getYErrorNegative(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!getYErrorNegative in interface DataSetErrorindex - of negative Y error to be returned.public double getYErrorPositive(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!getYErrorPositive in interface DataSetErrorindex - of positive Y error to be returned.public String getDataLabel(int index)
AbstractDataSetgetDataLabel in interface DataSetgetDataLabel in class AbstractDataSet<DoubleErrorDataSet>index - data point indexnull if none label has been specified for
this data point.public int getDataCount()
DataSetgetDataCount in interface DataSetpublic 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 void reset()
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.