@Deprecated public class ListErrorDataSet extends AbstractErrorDataSet<ListErrorDataSet> implements DataSet2D, DataSetError
DataSet and DataSetError interface. User provides X and Y
coordinates or only Y coordinates. In the former case X coordinates have value of data point index. Symmetric errors
in X and Y are implemented N.B. this is a classic list-based implementation. This is a "simple" implementation but
has a poorer performance compared to Default- and Double-based DataSets @see DoubleDataSetfor the reference implementation,
for an implementation without asymmetric error handling,
DataSet,
DataSetError,
Serialized FormDataSetError.ErrorType| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<DoublePointError> |
data
Deprecated.
|
protected Map<Integer,String> |
dataLabels
Deprecated.
|
protected Map<Integer,String> |
dataStyles
Deprecated.
|
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
ListErrorDataSet(String name)
Deprecated.
Creates a new instance of
DefaultDataSet. |
ListErrorDataSet(String name,
double[] yValues)
Deprecated.
Creates a new instance of
DefaultDataSet. |
ListErrorDataSet(String name,
double[] xValues,
double[] yValues)
Deprecated.
Creates a new instance of
DefaultDataSet. |
ListErrorDataSet(String name,
double[] xValues,
double[] yValues,
double[] yErrors)
Deprecated.
Creates a new instance of
DefaultDataSet. |
ListErrorDataSet(String name,
double[] xValues,
double[] yValues,
double[] xErrors,
double[] yErrors)
Deprecated.
Creates a new instance of
DefaultDataSet. |
| Modifier and Type | Method and Description |
|---|---|
ListErrorDataSet |
add(double[] xValues,
double[] yValues)
Deprecated.
Adds data points to this data set.
|
ListErrorDataSet |
add(double[] xValues,
double[] yValues,
double[] xErrors,
double[] yErrors)
Deprecated.
Adds data points to this data set.
|
ListErrorDataSet |
add(double x,
double y)
Deprecated.
|
ListErrorDataSet |
add(double x,
double y,
double ex,
double ey)
Deprecated.
add new point
|
String |
addDataLabel(int index,
String label)
Deprecated.
adds a custom new data label for a point The label can be used as a category name if CategoryStepsDefinition is
used or for annotations displayed for data points.
|
String |
addDataStyle(int index,
String style)
Deprecated.
A string representation of the CSS style associated with this specific
DataSet data point. |
ListErrorDataSet |
clearData()
Deprecated.
clears all data points
|
double |
get(int dimIndex,
int i)
Deprecated.
Gets the x value of the data point with the index i
|
List<DoublePointError> |
getData()
Deprecated.
|
int |
getDataCount()
Deprecated.
Get the number of data points in the data set.
|
String |
getDataLabel(int index)
Deprecated.
Returns label of a data point specified by the index.
|
double |
getErrorNegative(int dimIndex,
int index)
Deprecated.
Returns the negative error along the 'dimIndex' axis of a point specified by the
index. |
double |
getErrorPositive(int dimIndex,
int index)
Deprecated.
Returns the positive error along the 'dimIndex' axis of a point specified by the
index. |
String |
getStyle(int index)
Deprecated.
A string representation of the CSS style associated with this specific
DataSet data point. |
ListErrorDataSet |
remove(int[] indices)
Deprecated.
Removes from this data set points with specified indices.
|
ListErrorDataSet |
remove(int fromIndex,
int toIndex)
Deprecated.
remove sub-range of data points
|
String |
removeDataLabel(int index)
Deprecated.
remove a custom data label for a point The label can be used as a category name if CategoryStepsDefinition is
used or for annotations displayed for data points.
|
String |
removeStyle(int index)
Deprecated.
A string representation of the CSS style associated with this specific
DataSet data point. |
ListErrorDataSet |
set(double[] xValues,
double[] yValues)
Deprecated.
Initialises the data set with specified data.
|
ListErrorDataSet |
set(double[] xValues,
double[] yValues,
double[] xErrors,
double[] yErrors,
int count)
Deprecated.
Initialises the data set with specified data.
|
ListErrorDataSet |
set(double[] xValues,
double[] yValues,
double[] yErrors,
int count)
Deprecated.
Initialises the data set with specified data.
|
ListErrorDataSet |
set(double[] xValues,
double[] yValues,
int count)
Deprecated.
Initialises the data set with specified data.
|
ListErrorDataSet |
set(int index,
double x,
double y)
Deprecated.
Sets the point with index to the new coordinate
|
ListErrorDataSet |
set(int index,
double x,
double y,
double dx,
double dy)
Deprecated.
Sets the point with index to the new coordinate
|
fireInvalidated, getErrorType, getThis, lock, recomputeLimits, setErrorTypeautoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, getAxisDescriptions, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getWarningList, hashCode, minNeigbourSearchX, 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 ArrayList<DoublePointError> data
public ListErrorDataSet(String name)
DefaultDataSet.name - name of this DataSet.IllegalArgumentException - if name is nullpublic ListErrorDataSet(String name, double[] yValues)
DefaultDataSet. X coordinates are equal to data points indices. name - name of this data set.yValues - Y coordinatesIllegalArgumentException - if any of parameters is nullpublic ListErrorDataSet(String name, double[] xValues, double[] yValues)
Creates a new instance of DefaultDataSet.
name - name of this data set.xValues - X coordinatesyValues - Y coordinatesIllegalArgumentException - if any of parameters is null or if arrays with coordinates have
different lengthspublic ListErrorDataSet(String name, double[] xValues, double[] yValues, double[] yErrors)
Creates a new instance of DefaultDataSet.
name - name of this data set.xValues - X coordinatesyValues - Y coordinatesyErrors - symmetric Y coordinate errors N.B. all errors are assumed to be positiveIllegalArgumentException - if any of parameters is null or if arrays with coordinates have
different lengthspublic ListErrorDataSet(String name, double[] xValues, double[] yValues, double[] xErrors, double[] yErrors)
Creates a new instance of DefaultDataSet.
name - name of this data set.xValues - X coordinatesyValues - Y coordinatesxErrors - symmetric X coordinate errorsyErrors - symmetric Y coordinate errors N.B. all errors are assumed to be positiveIllegalArgumentException - if any of parameters is null or if arrays with coordinates have
different lengthspublic ListErrorDataSet add(double x, double y)
x - coordinatey - coordinatepublic ListErrorDataSet add(double x, double y, double ex, double ey)
x - horizontal point coordinatey - vertical point coordinateex - horizontal point errorey - vertical point error Note: point errors are expected to be positivepublic ListErrorDataSet add(double[] xValues, double[] yValues)
usingXValues flag is set to false - array with X coordinates is not taken into account (may be
null) otherwise both arrays must be non-null and have the same length.xValues - X coordinatesyValues - Y coordinatespublic ListErrorDataSet add(double[] xValues, double[] yValues, double[] xErrors, double[] yErrors)
usingXValues flag is set to false - array with X coordinates is not taken into account (may be
null) otherwise both arrays must be non-null and have the same length.xValues - X coordinatesyValues - Y coordinatesxErrors - horizontal errorsyErrors - vertical errorspublic String addDataLabel(int index, String label)
addDataLabel in class AbstractDataSet<ListErrorDataSet>index - of the data pointlabel - for the data point specified by the indexnull if no label has been specifiedpublic String addDataStyle(int index, String style)
DataSet data point. @see
#getStyle()addDataStyle in class AbstractDataSet<ListErrorDataSet>index - the index of the specific data pointstyle - of the given data point (CSS-styling)public ListErrorDataSet clearData()
public List<DoublePointError> getData()
public int getDataCount()
DataSet2DgetDataCount in interface DataSetgetDataCount in interface DataSet2Dpublic String getDataLabel(int index)
getDataLabel in interface DataSetgetDataLabel in class AbstractDataSet<ListErrorDataSet>index - of the data labelnull if no label has been specifiedpublic 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<ListErrorDataSet>index - the index of the specific data pointpublic double get(int dimIndex,
int i)
DataSetpublic ListErrorDataSet remove(int fromIndex, int toIndex)
fromIndex - start indextoIndex - stop indexpublic ListErrorDataSet remove(int[] indices)
indices - array of indicices to be removedpublic String removeDataLabel(int index)
removeDataLabel in class AbstractDataSet<ListErrorDataSet>index - of the data pointnull if no label has been specifiedpublic String removeStyle(int index)
DataSet data point. @see
#getStyle()removeStyle in class AbstractDataSet<ListErrorDataSet>index - the index of the specific data pointpublic ListErrorDataSet 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 ListErrorDataSet set(double[] xValues, double[] yValues, double[] xErrors, double[] yErrors, int count)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatesxErrors - symmetric X coordinate errorsyErrors - symmetric Y coordinate errorscount - number of points to be taken from specified arrays.public ListErrorDataSet set(double[] xValues, double[] yValues, double[] yErrors, int count)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatesyErrors - symmetric Y coordinate errorscount - number of points to be taken from specified arrays.public ListErrorDataSet set(double[] xValues, double[] yValues, int count)
Initialises the data set with specified data.
Note: The method copies values from specified double arrays.xValues - X coordinatesyValues - Y coordinatescount - number of points to be taken from specified arrays.public ListErrorDataSet set(int index, double x, double y)
index - the point index of the data setx - the horizontal coordinate of the data pointy - the vertical coordinate of the data pointpublic ListErrorDataSet set(int index, double x, double y, double dx, double dy)
index - the point index of the data setx - the horizontal coordinate of the data pointy - the vertical coordinate of the data pointdx - the horizontal errordy - the vertical error N.B. assumes symmetric errorsCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.