public class DoubleDataSet extends de.gsi.dataset.spi.AbstractDataSet<DoubleDataSet> implements de.gsi.dataset.EditableDataSet, de.gsi.dataset.DataSet2D
DataSet interface which stores x,y values in two separate arrays. It provides
methods allowing easily manipulate of data points. for an equivalent implementation with asymmetric errors in Y,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected int |
dataMaxIndex
Deprecated.
|
protected double[] |
xValues
Deprecated.
|
protected double[] |
yValues
Deprecated.
|
| Constructor and Description |
|---|
DoubleDataSet(de.gsi.dataset.DataSet2D another)
Deprecated.
Creates a new instance of
DoubleDataSet as copy of another (deep-copy). |
DoubleDataSet(String name)
Deprecated.
Creates a new instance of
DoubleDataSet. |
DoubleDataSet(String name,
double[] xValues,
double[] yValues,
int initalSize,
boolean deepCopy)
Deprecated.
Creates a new instance of
DoubleDataSet. |
DoubleDataSet(String name,
int initalSize)
Deprecated.
Creates a new instance of
DoubleDataSet. |
| Modifier and Type | Method and Description |
|---|---|
DoubleDataSet |
add(double[] xValuesNew,
double[] yValuesNew)
Deprecated.
Initialises the data set with specified data.
|
DoubleDataSet |
add(double x,
double y)
Deprecated.
Add point to the end of the data set
|
DoubleDataSet |
add(double x,
double y,
String label)
Deprecated.
Add point to the DoublePoints object
|
DoubleDataSet |
add(int index,
double... newValues)
Deprecated.
add point to the data set
|
DoubleDataSet |
add(int index,
double x,
double y,
String label)
Deprecated.
add point to the data set
|
DoubleDataSet |
clearData()
Deprecated.
clear all data points
|
double |
get(int dimImdex,
int index)
Deprecated.
|
int |
getDataCount(int dimIndex)
Deprecated.
|
double[] |
getXValues()
Deprecated.
|
double[] |
getYValues()
Deprecated.
|
de.gsi.dataset.EditableDataSet |
remove(int index)
Deprecated.
remove point from data set
|
DoubleDataSet |
remove(int fromIndex,
int toIndex)
Deprecated.
removes sub-range of data points
|
DoubleDataSet |
set(de.gsi.dataset.DataSet2D other)
Deprecated.
clear old data and overwrite with data from 'other' data set (deep copy)
|
DoubleDataSet |
set(double[] xValues,
double[] yValues)
Deprecated.
Initialises the data set with specified data.
|
DoubleDataSet |
set(double[] xValues,
double[] yValues,
boolean copy)
Deprecated.
Initialises the data set with specified data.
|
DoubleDataSet |
set(int index,
double... newValue)
Deprecated.
|
addDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, fireInvalidated, getAxisDescriptions, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getStyle, getThis, getWarningList, hashCode, lock, minNeigbourSearchX, recomputeLimits, removeDataLabel, removeStyle, setEditConstraints, setName, toString, updateEventListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEditConstraints, setEditConstraints, setNamegetDimension, getValue, getValue, getX, getXIndex, getY, getYIndexprotected double[] xValues
protected double[] yValues
protected int dataMaxIndex
public DoubleDataSet(de.gsi.dataset.DataSet2D another)
DoubleDataSet as copy of another (deep-copy).another - name of this DataSet.public DoubleDataSet(String name)
DoubleDataSet.name - name of this DataSet.IllegalArgumentException - if name is nullpublic DoubleDataSet(String name, double[] xValues, double[] yValues, int initalSize, boolean deepCopy)
Creates a new instance of DoubleDataSet.
name - name of this data set.xValues - X coordinatesyValues - Y coordinatesinitalSize - initial buffer sizedeepCopy - if true, the input array is copiedIllegalArgumentException - if any of parameters is null or if arrays with coordinates have
different lengthspublic DoubleDataSet(String name, int initalSize)
DoubleDataSet.name - name of this DataSet.initalSize - initial buffer sizeIllegalArgumentException - if name is nullpublic DoubleDataSet add(double x, double y)
x - indexy - indexpublic DoubleDataSet add(double x, double y, String label)
x - indexy - indexlabel - the data labelpublic DoubleDataSet add(double[] xValuesNew, double[] yValuesNew)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValuesNew - X coordinatesyValuesNew - Y coordinatespublic DoubleDataSet add(int index, double... newValues)
add in interface de.gsi.dataset.EditableDataSetindex - data point index at which the new data point should be addednewValues - coordinate of the new data pointpublic DoubleDataSet add(int index, double x, double y, String label)
index - data point index at which the new data point should be addedx - horizontal coordinate of the new data pointy - vertical coordinate of the new data pointlabel - data point label (see CategoryAxis)public DoubleDataSet clearData()
public double get(int dimImdex,
int index)
get in interface de.gsi.dataset.DataSetpublic int getDataCount(int dimIndex)
getDataCount in interface de.gsi.dataset.DataSetpublic 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.EditableDataSetindex - data point which should be removedpublic DoubleDataSet remove(int fromIndex, int toIndex)
fromIndex - start indextoIndex - stop indexpublic DoubleDataSet set(de.gsi.dataset.DataSet2D other)
other - the source data setpublic DoubleDataSet set(double[] xValues, double[] yValues)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatespublic DoubleDataSet set(double[] xValues, double[] yValues, boolean copy)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatescopy - true: makes an internal copy, false: use the pointer as is (saves memory allocationpublic DoubleDataSet set(int index, double... newValue)
set in interface de.gsi.dataset.EditableDataSetCopyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.