Package de.gsi.dataset.spi
Class DimReductionDataSet
- java.lang.Object
-
- de.gsi.dataset.spi.AbstractStylable<D>
-
- de.gsi.dataset.spi.AbstractDataSet<DoubleDataSet>
-
- de.gsi.dataset.spi.DoubleDataSet
-
- de.gsi.dataset.spi.DimReductionDataSet
-
- All Implemented Interfaces:
DataSet,DataSet2D,DataSetMetaData,EditableDataSet,EventListener,EventSource,java.io.Serializable
public class DimReductionDataSet extends DoubleDataSet implements EventListener
Reduces 3D data to 2D DataSet either via slicing, min, mean, max or integration- Author:
- rstein
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDimReductionDataSet.Option
-
Field Summary
-
Fields inherited from class de.gsi.dataset.spi.DoubleDataSet
xValues, yValues
-
Fields inherited from interface de.gsi.dataset.DataSetMetaData
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT
-
-
Constructor Summary
Constructors Constructor Description DimReductionDataSet(DataSet3D source, int dimIndex, DimReductionDataSet.Option reductionOption)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxIndex(int dimIndex)intgetMinIndex(int dimIndex)DimReductionDataSet.OptiongetReductionOption()DataSetgetSourceDataSet()voidhandle(UpdateEvent event)This method needs to be provided by an implementation ofUpdateListener.voidsetMaxIndex(int dimIndex, double val)voidsetMinIndex(int dimIndex, double val)protected voidupdateMeanIntegral(boolean isMean)protected voidupdateMinMax(boolean isMin)protected voidupdateSlice()-
Methods inherited from class de.gsi.dataset.spi.DoubleDataSet
add, add, add, add, add, add, add, clearData, get, getCapacity, getDataCount, getValues, increaseCapacity, remove, remove, resize, set, set, set, set, set, set, trim
-
Methods inherited from class de.gsi.dataset.spi.AbstractDataSet
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, updateEventListener
-
Methods inherited from class de.gsi.dataset.spi.AbstractStylable
getStyle, setStyle
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.gsi.dataset.DataSet
getAxisDescription, getAxisDescriptions, getDataLabel, getIndex, getName, getStyle, getStyle, lock, recomputeLimits, setStyle
-
Methods inherited from interface de.gsi.dataset.DataSet2D
getDataCount, getDimension, getValue, getValue, getX, getXIndex, getXValues, getY, getYIndex, getYValues
-
Methods inherited from interface de.gsi.dataset.EditableDataSet
getEditConstraints, setEditConstraints, setName
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListener
-
-
-
-
Constructor Detail
-
DimReductionDataSet
public DimReductionDataSet(DataSet3D source, int dimIndex, DimReductionDataSet.Option reductionOption)
-
-
Method Detail
-
getMaxIndex
public int getMaxIndex(int dimIndex)
-
getMinIndex
public int getMinIndex(int dimIndex)
-
getReductionOption
public DimReductionDataSet.Option getReductionOption()
-
getSourceDataSet
public DataSet getSourceDataSet()
- Returns:
- source data set
-
handle
public void handle(UpdateEvent event)
Description copied from interface:EventListenerThis method needs to be provided by an implementation ofUpdateListener. It is called if anEventSourcehas been modified/updated.In general is is considered bad practice to modify the observed value in this method.
- Specified by:
handlein interfaceEventListener- Parameters:
event- TheUpdateEventissued by the modifiedUpdateSource
-
setMaxIndex
public void setMaxIndex(int dimIndex, double val)
-
setMinIndex
public void setMinIndex(int dimIndex, double val)
-
updateMeanIntegral
protected void updateMeanIntegral(boolean isMean)
-
updateMinMax
protected void updateMinMax(boolean isMin)
-
updateSlice
protected void updateSlice()
-
-