Package de.gsi.dataset.spi
Class DefaultErrorDataSet
- java.lang.Object
-
- de.gsi.dataset.spi.AbstractStylable<D>
-
- de.gsi.dataset.spi.AbstractDataSet<D>
-
- de.gsi.dataset.spi.AbstractErrorDataSet<DoubleErrorDataSet>
-
- de.gsi.dataset.spi.DoubleErrorDataSet
-
- de.gsi.dataset.spi.DefaultErrorDataSet
-
- All Implemented Interfaces:
DataSet,DataSetError,DataSetMetaData,EditableDataSet,EventSource
public class DefaultErrorDataSet extends DoubleErrorDataSet
Redirect to the reference implementation declared as 'default'. This implementation should have a good performance and applicability for most use-cases. Presently it is based on the @see DoubleDataSet implementation.- Author:
- rstein
- See Also:
for the reference implementation,for an implementation without asymmetric errors in Y
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.gsi.dataset.DataSetError
DataSetError.ErrorType
-
-
Field Summary
-
Fields inherited from class de.gsi.dataset.spi.DoubleErrorDataSet
dataMaxIndex, xValues, yErrorsNeg, yErrorsPos, yValues
-
Fields inherited from class de.gsi.dataset.spi.AbstractDataSet
dataLabels, dataStyles, editConstraints, lock, metaInfoMap, name, updateListeners, xRange, yRange
-
Fields inherited from interface de.gsi.dataset.DataSetMetaData
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT
-
-
Constructor Summary
Constructors Constructor Description DefaultErrorDataSet(DataSet another)Creates a new instance ofDoubleDataSetas copy of another (deep-copy).DefaultErrorDataSet(java.lang.String name)Creates a new instance ofDefaultErrorDataSet.DefaultErrorDataSet(java.lang.String name, double[] xValues, double[] yValues, double[] yErrorsNeg, double[] yErrorsPos, int nData, boolean deepCopy)Creates a new instance ofDefaultErrorDataSet.DefaultErrorDataSet(java.lang.String name, int initalSize)Creates a new instance ofDefaultErrorDataSet.
-
Method Summary
-
Methods inherited from class de.gsi.dataset.spi.DoubleErrorDataSet
add, add, add, add, clearData, getDataCount, getDataLabelMap, getDataStyleMap, getX, getXErrorNegative, getXErrorPositive, getXValues, getY, getYErrorNegative, getYErrorPositive, getYErrorsNegative, getYErrorsPositive, getYValues, remove, remove, set, set, set, set, set
-
Methods inherited from class de.gsi.dataset.spi.AbstractErrorDataSet
computeLimits, fireInvalidated, getErrorType, getThis, lock, setErrorType, unlock
-
Methods inherited from class de.gsi.dataset.spi.AbstractDataSet
addDataLabel, addDataStyle, binarySearchX, binarySearchY, getDataCount, getDataLabel, getDefaultDataLabel, getEditConstraints, getErrorList, getInfoList, getMetaInfo, getName, getStyle, getUndefValue, getWarningList, getXIndex, getXMax, getXMin, getXRange, getYIndex, getYMax, getYMin, getYRange, isAutoNotification, minNeigbourSearchX, removeDataLabel, removeStyle, setAutoNotifaction, setEditConstraints, setName, toString, updateEventListener
-
Methods inherited from class de.gsi.dataset.spi.AbstractStylable
getStyle, setStyle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.gsi.dataset.DataSet
getDataCount, getDataLabel, getName, getStyle, getStyle, getUndefValue, getValue, getXIndex, getXMax, getXMin, getYIndex, getYMax, getYMin, isAutoNotification, lock, setAutoNotifaction, setStyle, unlock
-
Methods inherited from interface de.gsi.dataset.DataSetError
getErrorType, getXErrorNegative, getXErrorPositive, getXErrorsNegative, getXErrorsPositive, getYErrorNegative, getYErrorPositive
-
Methods inherited from interface de.gsi.dataset.EditableDataSet
getEditConstraints, setEditConstraints, setName
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, invokeListener, invokeListener, removeListener, updateEventListener
-
-
-
-
Constructor Detail
-
DefaultErrorDataSet
public DefaultErrorDataSet(java.lang.String name)
Creates a new instance ofDefaultErrorDataSet.- Parameters:
name- name of this DataSet.
-
DefaultErrorDataSet
public DefaultErrorDataSet(java.lang.String name, int initalSize)Creates a new instance ofDefaultErrorDataSet.- Parameters:
name- name of this DataSet.initalSize- maximum capacity of buffer- Throws:
java.lang.IllegalArgumentException- ifnameisnull
-
DefaultErrorDataSet
public DefaultErrorDataSet(DataSet another)
Creates a new instance ofDoubleDataSetas copy of another (deep-copy).- Parameters:
another- name of this DataSet.
-
DefaultErrorDataSet
public DefaultErrorDataSet(java.lang.String name, double[] xValues, double[] yValues, double[] yErrorsNeg, double[] yErrorsPos, int nData, boolean deepCopy)Creates a new instance of
DefaultErrorDataSet.- Parameters:
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 copied- Throws:
java.lang.IllegalArgumentException- if any of parameters isnullor if arrays with coordinates have different lengths
-
-