D - generics for fluent designpublic abstract class AbstractTestFunction<D extends AbstractTestFunction<D>> extends AbstractErrorDataSet<D> implements DataSet2D, TestDataSet<D>
DataSetError.ErrorTypeTAG_GAIN_RANGE, TAG_OVERSHOOT, TAG_UNDERSHOOT| Constructor and Description |
|---|
AbstractTestFunction(String name,
int count) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
generateX(int count)
generate test data set
|
double |
get(int dimIndex,
int index)
Gets the x value of the data point with the index i
|
int |
getDataCount()
Get the number of data points in the data set.
|
double |
getErrorNegative(int dimIndex,
int index)
Returns the negative error along the 'dimIndex' axis of a point specified by the
index. |
double |
getErrorPositive(int dimIndex,
int index)
Returns the positive error along the 'dimIndex' axis of a point specified by the
index. |
DataSetError.ErrorType |
getErrorType(int dimIndex)
return the DataSetError.ErrorType of the dataset
|
String |
getStyle(int index)
A string representation of the CSS style associated with this specific
DataSet data point. |
double |
getX(int index)
Gets the x value of the data point with the index i
|
double |
getY(int index)
Gets the y value of the data point with the index i
|
D |
update()
generate a new set of numbers
|
fireInvalidated, getThis, lock, recomputeLimits, setErrorTypeaddDataLabel, 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, updateEventListenergetStyle, setStyleclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDataCount, getDimension, getValue, getValue, getXIndex, getXValues, getYIndex, getYValuesfireInvalidated, generateYgetAxisDescription, getAxisDescriptions, getDataLabel, getIndex, getName, getStyle, getValues, lock, recomputeLimits, setStyleaddListener, autoNotification, invokeListener, invokeListener, invokeListener, isAutoNotification, removeListener, updateEventListenergetErrorNegative, getErrorPositive, getErrorsNegative, getErrorsPositivepublic AbstractTestFunction(String name, int count)
name - data set namecount - number of samplespublic double[] generateX(int count)
TestDataSetgenerateX in interface TestDataSet<D extends AbstractTestFunction<D>>count - number of binspublic double get(int dimIndex,
int index)
DataSetpublic int getDataCount()
DataSet2DgetDataCount in interface DataSetgetDataCount in interface DataSet2Dpublic final 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 final 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 DataSetError.ErrorType getErrorType(int dimIndex)
AbstractErrorDataSetgetErrorType in interface DataSetErrorgetErrorType in class AbstractErrorDataSet<D extends AbstractTestFunction<D>>dimIndex - the dimension for which to query the ErrorTypefor detailspublic final String getStyle(int index)
AbstractDataSetDataSet data point. @see
#getStyle()getStyle in interface DataSetgetStyle in class AbstractDataSet<D extends AbstractTestFunction<D>>index - the index of the specific data pointpublic double getX(int index)
DataSet2Dpublic double getY(int index)
DataSet2Dpublic D update()
TestDataSetupdate in interface TestDataSet<D extends AbstractTestFunction<D>>Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.