D - generics for fluent designpublic abstract class AbstractTestFunction<D extends AbstractTestFunction<D>> extends AbstractErrorDataSet<D> implements TestDataSet<D>
DataSetError.ErrorTypelock, name, updateListeners, xRange, yRangeTAG_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
|
int |
getDataCount()
Get the number of data points in the data set
|
DataSetError.ErrorType |
getErrorType()
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 |
getXErrorNegative(int index)
Returns the negative error along the X axis of a point specified by the
index. |
double |
getXErrorPositive(int index)
Returns the positive error along the X axis of a point specified by the
index. |
double |
getY(int index)
Gets the y value of the data point with the index i
|
double |
getYErrorNegative(int index)
Returns the negative error along the Y axis of a point specified by the
index. |
double |
getYErrorPositive(int index)
Returns the positive error along the Y axis of a point specified by the
index. |
D |
update()
generate a new set of numbers
|
computeLimits, getThis, setErrorTypebinarySearchX, binarySearchY, fireInvalidated, getDataCount, getDataLabel, getErrorList, getInfoList, getMetaInfo, getName, getUndefValue, getWarningList, getXIndex, getXMax, getXMin, getXRange, getYIndex, getYMax, getYMin, getYRange, isAutoNotification, lock, minNeigbourSearchX, setAutoNotifaction, setName, toString, unlock, updateEventListenergetStyle, setStyleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfireInvalidated, generateYgetDataCount, getDataLabel, getName, getStyle, getUndefValue, getValue, getXIndex, getXMax, getXMin, getXValues, getYIndex, getYMax, getYMin, getYValues, isAutoNotification, lock, setAutoNotifaction, setStyle, unlockaddListener, invokeListener, invokeListener, removeListener, updateEventListenergetXErrorNegative, getXErrorPositive, getXErrorsNegative, getXErrorsPositive, getYErrorNegative, getYErrorPositive, getYErrorsNegative, getYErrorsPositivepublic AbstractTestFunction(String name, int count)
name - data set namecount - number of samplespublic D update()
TestDataSetupdate in interface TestDataSet<D extends AbstractTestFunction<D>>public int getDataCount()
DataSetgetDataCount in interface DataSetpublic double getX(int index)
DataSetpublic double getY(int index)
DataSetpublic double getXErrorNegative(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!getXErrorNegative in interface DataSetErrorindex - of negative X error to be returned.public double getXErrorPositive(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!getXErrorPositive in interface DataSetErrorindex - of positive X error to be returned.public double getYErrorNegative(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!getYErrorNegative in interface DataSetErrorindex - of negative Y error to be returned.public double getYErrorPositive(int index)
DataSetErrorindex. Please note that
errors are assumed to be always positive!getYErrorPositive in interface DataSetErrorindex - of positive Y error to be returned.public DataSetError.ErrorType getErrorType()
AbstractErrorDataSetgetErrorType in interface DataSetErrorgetErrorType in class AbstractErrorDataSet<D extends AbstractTestFunction<D>>for detailspublic String getStyle(int index)
DataSetDataSet data point. @see #getStyle()public double[] generateX(int count)
TestDataSetgenerateX in interface TestDataSet<D extends AbstractTestFunction<D>>count - number of binsCopyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.