public class CircularDoubleErrorDataSet extends AbstractErrorDataSet<CircularDoubleErrorDataSet> implements DataSet2D, 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 |
TAG_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[] xVals,
double[] yVals,
double[] yErrNeg,
double[] yErrPos)
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
|
double |
get(int dimIndex,
int index)
Gets the x value of the data point with the index i
|
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 |
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. |
String |
getStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
CircularDoubleErrorDataSet |
reset()
resets all data
|
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, waitgetDataCount, getDimension, getValue, getValue, getX, getXIndex, getXValues, getY, getYIndex, getYValuesgetErrorNegative, getErrorPositive, getErrorsNegative, getErrorsPositive, getErrorTypegetAxisDescription, getAxisDescriptions, getIndex, getName, getStyle, getValues, lock, recomputeLimits, setStyleaddListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, 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 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 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, 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[] xVals, double[] yVals, double[] yErrNeg, double[] yErrPos)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xVals - the new x coordinatesyVals - the new y coordinatesyErrNeg - the +dy errorsyErrPos - the -dy errorspublic int getDataCount()
DataSet2DgetDataCount in interface DataSetgetDataCount in interface DataSet2Dpublic String getDataLabel(int index)
getDataLabel in interface DataSetgetDataLabel in class AbstractDataSet<CircularDoubleErrorDataSet>index - data point indexnull if none label has been specified for
this data point.public 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 String getStyle(int index)
DataSet data point. @see
#getStyle()getStyle in interface DataSetgetStyle in class AbstractDataSet<CircularDoubleErrorDataSet>index - the index of the specific data pointpublic final double get(int dimIndex,
int index)
DataSetpublic CircularDoubleErrorDataSet reset()
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.