Package de.gsi.dataset.testdata.spi
Class TriangleFunction
- java.lang.Object
-
- de.gsi.dataset.spi.AbstractStylable<D>
-
- de.gsi.dataset.spi.AbstractDataSet<D>
-
- de.gsi.dataset.spi.AbstractErrorDataSet<D>
-
- de.gsi.dataset.testdata.spi.AbstractTestFunction<TriangleFunction>
-
- de.gsi.dataset.testdata.spi.TriangleFunction
-
- All Implemented Interfaces:
DataSet,DataSet2D,DataSetError,DataSetMetaData,EventSource,TestDataSet<TriangleFunction>,java.io.Serializable
public class TriangleFunction extends AbstractTestFunction<TriangleFunction>
abstract error data set for graphical testing purposes this implementation generates a triangular function- Author:
- Alexander Krimm
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.gsi.dataset.DataSetError
DataSetError.ErrorType
-
-
Field Summary
-
Fields inherited from interface de.gsi.dataset.DataSetMetaData
TAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT
-
-
Constructor Summary
Constructors Constructor Description TriangleFunction(java.lang.String name, int count)Creates a triangular function which rises from zero to one and back.TriangleFunction(java.lang.String name, int count, double offset)Creates a triangular function which rises from offset to offset+1 and back.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]generateY(int count)generate test data set-
Methods inherited from class de.gsi.dataset.testdata.spi.AbstractTestFunction
generateX, get, getDataCount, getErrorNegative, getErrorPositive, getErrorType, getStyle, getX, getY, update
-
Methods inherited from class de.gsi.dataset.spi.AbstractErrorDataSet
fireInvalidated, getThis, lock, recomputeLimits, setErrorType
-
Methods inherited from class de.gsi.dataset.spi.AbstractDataSet
addDataLabel, addDataStyle, autoNotification, binarySearch, clearMetaInfo, equalDataLabels, equalEditConstraints, equalErrorValues, equalMetaData, equals, equals, equalValues, getAxisDescriptions, getDataLabel, getDataLabelMap, getDataStyleMap, getDimension, getEditConstraints, getErrorList, getIndex, getInfoList, getMetaInfo, getName, getWarningList, hashCode, minNeigbourSearchX, 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, getDataCount, getDataLabel, getIndex, getName, getStyle, getValues, lock, recomputeLimits, setStyle
-
Methods inherited from interface de.gsi.dataset.DataSet2D
getDimension, getValue, getValue, getXIndex, getXValues, getYIndex, getYValues
-
Methods inherited from interface de.gsi.dataset.DataSetError
getErrorNegative, getErrorPositive, getErrorsNegative, getErrorsPositive
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListener
-
Methods inherited from interface de.gsi.dataset.testdata.TestDataSet
fireInvalidated
-
-
-
-
Constructor Detail
-
TriangleFunction
public TriangleFunction(java.lang.String name, int count)Creates a triangular function which rises from zero to one and back.- Parameters:
name- data set namecount- number of samples
-
TriangleFunction
public TriangleFunction(java.lang.String name, int count, double offset)Creates a triangular function which rises from offset to offset+1 and back.- Parameters:
name- data set namecount- number of samplesoffset- offset to zero
-
-
Method Detail
-
generateY
public double[] generateY(int count)
Description copied from interface:TestDataSetgenerate test data set- Parameters:
count- number of bins- Returns:
- the generated array
-
-