public class DoubleErrorDataSet extends de.gsi.dataset.spi.AbstractErrorDataSet<DoubleErrorDataSet> implements de.gsi.dataset.DataSetError, de.gsi.dataset.EditableDataSet, de.gsi.dataset.DataSet2D
DataSetError interface which stores x,y, +eyn, -eyn values in separate double
arrays. It provides methods allowing easily manipulate of data points. for an equivalent implementation without errors,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected int |
dataMaxIndex
Deprecated.
|
protected double[] |
xValues
Deprecated.
|
protected double[] |
yErrorsNeg
Deprecated.
|
protected double[] |
yErrorsPos
Deprecated.
|
protected double[] |
yValues
Deprecated.
|
| Constructor and Description |
|---|
DoubleErrorDataSet(de.gsi.dataset.DataSet2D another)
Deprecated.
Creates a new instance of
DoubleDataSet as copy of another (deep-copy). |
DoubleErrorDataSet(String name)
Deprecated.
Creates a new instance of
DoubleErrorDataSet. |
DoubleErrorDataSet(String name,
double[] xValues,
double[] yValues,
double[] yErrorsNeg,
double[] yErrorsPos,
int nData,
boolean deepCopy)
Deprecated.
Creates a new instance of
DoubleErrorDataSet. |
DoubleErrorDataSet(String name,
int initalSize)
Deprecated.
Creates a new instance of
DoubleErrorDataSet. |
| Modifier and Type | Method and Description |
|---|---|
DoubleErrorDataSet |
add(double[] xValues,
double[] yValues,
double[] yErrorsNeg,
double[] yErrorsPos)
Deprecated.
Initialises the data set with specified data.
|
DoubleErrorDataSet |
add(double x,
double y)
Deprecated.
Add point to the DoublePoints object.
|
DoubleErrorDataSet |
add(double x,
double y,
double yErrorNeg,
double yErrorPos)
Deprecated.
Add point to the DoublePoints object
|
de.gsi.dataset.EditableDataSet |
add(int index,
double... newValue)
Deprecated.
|
DoubleErrorDataSet |
clearData()
Deprecated.
clears all data
|
double |
get(int dimIndex,
int index)
Deprecated.
|
int |
getDataCount(int dimIndex)
Deprecated.
|
double |
getErrorNegative(int dimIndex,
int index)
Deprecated.
|
double |
getErrorPositive(int dimIndex,
int index)
Deprecated.
|
double[] |
getErrorsNegative(int dimIndex)
Deprecated.
|
double[] |
getErrorsPositive(int dimIndex)
Deprecated.
|
double[] |
getXValues()
Deprecated.
|
double[] |
getYValues()
Deprecated.
|
de.gsi.dataset.EditableDataSet |
remove(int index)
Deprecated.
|
DoubleErrorDataSet |
remove(int fromIndex,
int toIndex)
Deprecated.
remove sub-range of data points
|
DoubleErrorDataSet |
set(de.gsi.dataset.DataSet2D other)
Deprecated.
clear old data and overwrite with data from 'other' data set (deep copy)
|
DoubleErrorDataSet |
set(double[] xValues,
double[] yValues,
double[] yErrorsNeg,
double[] yErrorsPos)
Deprecated.
Initialises the data set with specified data.
|
DoubleErrorDataSet |
set(double[] xValues,
double[] yValues,
double[] yErrorsNeg,
double[] yErrorsPos,
boolean copy)
Deprecated.
Initialises the data set with specified data.
|
DoubleErrorDataSet |
set(int index,
double... newValue)
Deprecated.
replaces point coordinate of existing data point
|
DoubleErrorDataSet |
set(int index,
double x,
double y,
double yErrorNeg,
double yErrorPos)
Deprecated.
replaces point coordinate of existing data point
|
fireInvalidated, getErrorType, getThis, lock, recomputeLimits, setErrorTypeaddDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, getAxisDescriptions, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getStyle, getWarningList, hashCode, minNeigbourSearchX, removeDataLabel, removeStyle, setEditConstraints, setName, toString, updateEventListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetErrorNegative, getErrorPositive, getErrorTypegetEditConstraints, setEditConstraints, setNamegetDimension, getValue, getValue, getX, getXIndex, getY, getYIndexprotected double[] xValues
protected double[] yValues
protected double[] yErrorsPos
protected double[] yErrorsNeg
protected int dataMaxIndex
public DoubleErrorDataSet(de.gsi.dataset.DataSet2D another)
DoubleDataSet as copy of another (deep-copy).another - name of this DataSet.public DoubleErrorDataSet(String name)
DoubleErrorDataSet.name - name of this DataSet.IllegalArgumentException - if name is nullpublic DoubleErrorDataSet(String name, double[] xValues, double[] yValues, double[] yErrorsNeg, double[] yErrorsPos, int nData, boolean deepCopy)
Creates a new instance of DoubleErrorDataSet.
name - name of this data set.xValues - X coordinatesyValues - Y coordinatesyErrorsNeg - Y negative coordinate erroryErrorsPos - Y positive coordinate errornData - how many data points are relevant to be takendeepCopy - if true, the input array is copiedIllegalArgumentException - if any of parameters is null or if arrays with coordinates have
different lengthspublic DoubleErrorDataSet(String name, int initalSize)
DoubleErrorDataSet.name - name of this DataSet.initalSize - maximum capacity of bufferIllegalArgumentException - if name is nullpublic DoubleErrorDataSet add(double x, double y)
x - the new x coordinatey - the new y coordinatepublic DoubleErrorDataSet add(double x, double y, double yErrorNeg, double yErrorPos)
x - the new x coordinatey - the new y coordinateyErrorNeg - the +dy erroryErrorPos - the -dy errorpublic DoubleErrorDataSet 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 - X coordinatesyValues - Y coordinatesyErrorsNeg - the +dy errorsyErrorsPos - the -dy errorspublic de.gsi.dataset.EditableDataSet add(int index,
double... newValue)
add in interface de.gsi.dataset.EditableDataSetpublic DoubleErrorDataSet clearData()
public double get(int dimIndex,
int index)
get in interface de.gsi.dataset.DataSetpublic int getDataCount(int dimIndex)
getDataCount in interface de.gsi.dataset.DataSetpublic double getErrorNegative(int dimIndex,
int index)
getErrorNegative in interface de.gsi.dataset.DataSetErrorpublic double getErrorPositive(int dimIndex,
int index)
getErrorPositive in interface de.gsi.dataset.DataSetErrorpublic double[] getErrorsNegative(int dimIndex)
getErrorsNegative in interface de.gsi.dataset.DataSetErrorpublic double[] getErrorsPositive(int dimIndex)
getErrorsPositive in interface de.gsi.dataset.DataSetErrorpublic double[] getXValues()
getXValues in interface de.gsi.dataset.DataSet2Dpublic double[] getYValues()
getYValues in interface de.gsi.dataset.DataSet2Dpublic de.gsi.dataset.EditableDataSet remove(int index)
remove in interface de.gsi.dataset.EditableDataSetpublic DoubleErrorDataSet remove(int fromIndex, int toIndex)
fromIndex - start indextoIndex - stop indexpublic DoubleErrorDataSet set(de.gsi.dataset.DataSet2D other)
other - the other data setpublic DoubleErrorDataSet set(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 - X coordinatesyValues - Y coordinatesyErrorsNeg - the +dy errorsyErrorsPos - the -dy errorspublic DoubleErrorDataSet set(double[] xValues, double[] yValues, double[] yErrorsNeg, double[] yErrorsPos, boolean copy)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatesyErrorsNeg - the +dy errorsyErrorsPos - the -dy errorscopy - true: makes an internal copy, false: use the pointer as is (saves memory allocation)public DoubleErrorDataSet set(int index, double... newValue)
set in interface de.gsi.dataset.EditableDataSetindex - the index of the data pointnewValue - new point coordinatespublic DoubleErrorDataSet set(int index, double x, double y, double yErrorNeg, double yErrorPos)
index - the index of the data pointx - new horizontal coordinatey - new vertical coordinateyErrorNeg - new vertical negative error of y (can be asymmetric)yErrorPos - new vertical positive error of y (can be asymmetric)Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.