public class DoubleErrorDataSet extends de.gsi.dataset.spi.AbstractErrorDataSet<DoubleErrorDataSet> implements de.gsi.dataset.DataSetError, de.gsi.dataset.EditableDataSet
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| 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.DataSet 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 x,
double y)
Deprecated.
|
DoubleErrorDataSet |
clearData()
Deprecated.
clears all data
|
int |
getDataCount()
Deprecated.
|
double |
getX(int index)
Deprecated.
|
double |
getXErrorNegative(int index)
Deprecated.
|
double |
getXErrorPositive(int index)
Deprecated.
|
double[] |
getXValues()
Deprecated.
|
double |
getY(int index)
Deprecated.
|
double |
getYErrorNegative(int index)
Deprecated.
|
double |
getYErrorPositive(int index)
Deprecated.
|
double[] |
getYErrorsNegative()
Deprecated.
|
double[] |
getYErrorsPositive()
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.DataSet 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 x,
double y)
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
|
computeLimits, fireInvalidated, getErrorType, getThis, lock, setErrorType, unlockaddDataLabel, addDataStyle, binarySearchX, binarySearchY, clearMetaInfo, getDataCount, getDataLabel, getDataLabelMap, getDataStyleMap, getEditConstraints, getErrorList, getInfoList, getMetaInfo, getName, getStyle, getUndefValue, getWarningList, getXIndex, getXMax, getXMin, getXRange, getYIndex, getYMax, getYMin, getYRange, isAutoNotification, minNeigbourSearchX, removeDataLabel, removeStyle, setAutoNotifaction, setEditConstraints, setName, toString, updateEventListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetErrorType, getXErrorNegative, getXErrorPositive, getXErrorsNegative, getXErrorsPositive, getYErrorNegative, getYErrorPositivegetEditConstraints, setEditConstraints, setNameprotected double[] xValues
protected double[] yValues
protected double[] yErrorsPos
protected double[] yErrorsNeg
protected int dataMaxIndex
public DoubleErrorDataSet(String name)
DoubleErrorDataSet.name - name of this DataSet.IllegalArgumentException - if name is
nullpublic DoubleErrorDataSet(String name, int initalSize)
DoubleErrorDataSet.name - name of this DataSet.initalSize - maximum capacity of bufferIllegalArgumentException - if name is
nullpublic DoubleErrorDataSet(de.gsi.dataset.DataSet another)
DoubleDataSet as copy of another
(deep-copy).another - name of this DataSet.public 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 double[] getXValues()
getXValues in interface de.gsi.dataset.DataSetpublic double[] getYValues()
getYValues in interface de.gsi.dataset.DataSetpublic double[] getYErrorsPositive()
getYErrorsPositive in interface de.gsi.dataset.DataSetErrorpublic double[] getYErrorsNegative()
getYErrorsNegative in interface de.gsi.dataset.DataSetErrorpublic int getDataCount()
getDataCount in interface de.gsi.dataset.DataSetpublic DoubleErrorDataSet clearData()
public double getX(int index)
getX in interface de.gsi.dataset.DataSetpublic double getY(int index)
getY in interface de.gsi.dataset.DataSetpublic double getXErrorNegative(int index)
getXErrorNegative in interface de.gsi.dataset.DataSetErrorpublic double getXErrorPositive(int index)
getXErrorPositive in interface de.gsi.dataset.DataSetErrorpublic double getYErrorNegative(int index)
getYErrorNegative in interface de.gsi.dataset.DataSetErrorpublic double getYErrorPositive(int index)
getYErrorPositive in interface de.gsi.dataset.DataSetErrorpublic DoubleErrorDataSet set(int index, double x, double y)
set in interface de.gsi.dataset.EditableDataSetindex - the index of the data pointx - new horizontal coordinatey - new vertical coordinate N.B. errors are implicitly assumed to be
zeropublic 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)public 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 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 de.gsi.dataset.EditableDataSet add(int index,
double x,
double y)
add in interface de.gsi.dataset.EditableDataSetpublic 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 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(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(de.gsi.dataset.DataSet other)
other - the other data setCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.