public class CircularDoubleErrorDataSet extends AbstractErrorDataSet<DoubleErrorDataSet> implements DataSetError
DataSetError.ErrorType| Modifier and Type | Field and Description |
|---|---|
protected CircularBuffer<String> |
dataStyles |
protected CircularBuffer<String> |
dataTag |
protected DoubleCircularBuffer |
xValues |
protected DoubleCircularBuffer |
yErrorsNeg |
protected DoubleCircularBuffer |
yErrorsPos |
protected DoubleCircularBuffer |
yValues |
lock, name, updateListeners, xRange, yRangeTAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
CircularDoubleErrorDataSet(String name,
int initalSize)
Creates a new instance of
CircularDoubleErrorDataSet. |
| Modifier and Type | Method and Description |
|---|---|
CircularDoubleErrorDataSet |
add(double[] xValues,
double[] yValues,
double[] yErrorsNeg,
double[] yErrorsPos)
Initialises the data set with specified data.
|
CircularDoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos)
Add point to the DoublePoints object
|
CircularDoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos,
String tag)
Add point to the DoublePoints object
|
CircularDoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos,
String tag,
String style)
Add point to the DoublePoints object
|
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.
|
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. |
CircularDoubleErrorDataSet |
reset()
resets all data
|
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 DoubleCircularBuffer xValues
protected DoubleCircularBuffer yValues
protected DoubleCircularBuffer yErrorsPos
protected DoubleCircularBuffer yErrorsNeg
protected CircularBuffer<String> dataTag
protected CircularBuffer<String> dataStyles
public CircularDoubleErrorDataSet(String name, int initalSize)
CircularDoubleErrorDataSet.name - name of this DataSet.initalSize - maximum circular buffer capacityIllegalArgumentException - if name is nullpublic int getDataCount()
DataSetgetDataCount in interface DataSetpublic double getX(int index)
DataSetpublic double getY(int index)
DataSetpublic 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 CircularDoubleErrorDataSet 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 style stringpublic CircularDoubleErrorDataSet 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 CircularDoubleErrorDataSet add(double x, double y, double yErrorNeg, double yErrorPos)
x - the new x coordinatey - the new y coordinateyErrorNeg - the +dy erroryErrorPos - the -dy errorpublic CircularDoubleErrorDataSet 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 CircularDoubleErrorDataSet reset()
public String getDataLabel(int index)
getDataLabel in interface DataSetgetDataLabel in class AbstractDataSet<DoubleErrorDataSet>index - data point indexnull if none label has been specified for
this data point.public String getStyle(int index)
DataSet data point. @see
#getStyle()Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.