Package de.gsi.dataset
Interface DataSet2D
-
- All Superinterfaces:
DataSet,EventSource,java.io.Serializable
- All Known Subinterfaces:
DataSet3D
- All Known Implementing Classes:
AbstractDataSet3D,AbstractTestFunction,AveragingDataSet,CircularDoubleErrorDataSet,CosineFunction,DefaultDataSet,DefaultErrorDataSet,DimReductionDataSet,DoubleDataSet,DoubleDataSet3D,DoubleErrorDataSet,FifoDoubleErrorDataSet,FloatDataSet,FragmentedDataSet,GaussFunction,Histogram2,LabelledMarkerDataSet,LimitedIndexedTreeDataSet,ListDataSet,ListErrorDataSet,RandomStepFunction,RandomWalkFunction,RollingDataSet,SincFunction,SineFunction,SingleOutlierFunction,TransposedDataSet.TransposedDataSet3D,WrappedDataSet
public interface DataSet2D extends DataSet
Basic interface for two-dimensional observable data sets.- Author:
- original from an unknown author at CERN (JDataViewer), braeun, rstein
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intgetDataCount()Get the number of data points in the data set.default intgetDataCount(int dim)Get the number of data points in the data setdefault intgetDimension()default doublegetValue(double x)Gets the interpolated y value of the data point for given x coordinatedefault doublegetValue(int dimIndex, double x)Gets the interpolated y value of the data point for given x coordinatedefault doublegetX(int index)Gets the x value of the data point with the index idefault intgetXIndex(double x)Gets the index of the data point closest to the given x coordinate.default double[]getXValues()default doublegetY(int index)Gets the y value of the data point with the index idefault intgetYIndex(double y)Gets the first index of the data point closest to the given y coordinate.default double[]getYValues()-
Methods inherited from interface de.gsi.dataset.DataSet
get, getAxisDescription, getAxisDescriptions, getDataLabel, getIndex, getName, getStyle, getStyle, getValues, lock, recomputeLimits, setStyle
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListener
-
-
-
-
Method Detail
-
getDataCount
int getDataCount()
Get the number of data points in the data set.- Specified by:
getDataCountin interfaceDataSet- Returns:
- the number of data points
-
getDataCount
default int getDataCount(int dim)
Get the number of data points in the data set- Specified by:
getDataCountin interfaceDataSet- Parameters:
dim- the dimension index (ie. '0' equals 'X', '1' equals 'Y')- Returns:
- the number of data points
-
getDimension
default int getDimension()
- Specified by:
getDimensionin interfaceDataSet- Returns:
- number of dimensions
-
getValue
default double getValue(double x)
Gets the interpolated y value of the data point for given x coordinate- Parameters:
x- the new x coordinate- Returns:
- the y value
-
getValue
default double getValue(int dimIndex, double x)Gets the interpolated y value of the data point for given x coordinate
-
getX
default double getX(int index)
Gets the x value of the data point with the index i- Parameters:
index- the data point index- Returns:
- the x value
-
getXIndex
default int getXIndex(double x)
Gets the index of the data point closest to the given x coordinate. The index returned may be less then zero or larger the the number of data points in the data set, if the x coordinate lies outside the range of the data set.- Parameters:
x- the x position of the data point- Returns:
- the index of the data point
-
getXValues
default double[] getXValues()
- Returns:
- the x value array
-
getY
default double getY(int index)
Gets the y value of the data point with the index i- Parameters:
index- the data point index- Returns:
- the y value
-
getYIndex
default int getYIndex(double y)
Gets the first index of the data point closest to the given y coordinate.- Parameters:
y- the y position of the data point- Returns:
- the index of the data point
-
getYValues
default double[] getYValues()
- Returns:
- the x value array
-
-