Class AbstractTestFunction<D extends AbstractTestFunction<D>>

    • Constructor Detail

      • AbstractTestFunction

        public AbstractTestFunction​(java.lang.String name,
                                    int count)
        Parameters:
        name - data set name
        count - number of samples
    • Method Detail

      • getDataCount

        public int getDataCount()
        Description copied from interface: DataSet
        Get the number of data points in the data set
        Specified by:
        getDataCount in interface DataSet
        Returns:
        the number of data points
      • getX

        public double getX​(int index)
        Description copied from interface: DataSet
        Gets the x value of the data point with the index i
        Specified by:
        getX in interface DataSet
        Parameters:
        index - the index of the data point
        Returns:
        the x value
      • getY

        public double getY​(int index)
        Description copied from interface: DataSet
        Gets the y value of the data point with the index i
        Specified by:
        getY in interface DataSet
        Parameters:
        index - the index of the data point
        Returns:
        the y value
      • getXErrorNegative

        public double getXErrorNegative​(int index)
        Description copied from interface: DataSetError
        Returns the negative error along the X axis of a point specified by the index. Please note that errors are assumed to be always positive!
        Specified by:
        getXErrorNegative in interface DataSetError
        Parameters:
        index - of negative X error to be returned.
        Returns:
        negative X error
      • getXErrorPositive

        public double getXErrorPositive​(int index)
        Description copied from interface: DataSetError
        Returns the positive error along the X axis of a point specified by the index. Please note that errors are assumed to be always positive!
        Specified by:
        getXErrorPositive in interface DataSetError
        Parameters:
        index - of positive X error to be returned.
        Returns:
        positive X error
      • getYErrorNegative

        public double getYErrorNegative​(int index)
        Description copied from interface: DataSetError
        Returns the negative error along the Y axis of a point specified by the index. Please note that errors are assumed to be always positive!
        Specified by:
        getYErrorNegative in interface DataSetError
        Parameters:
        index - of negative Y error to be returned.
        Returns:
        negative Y error
      • getYErrorPositive

        public double getYErrorPositive​(int index)
        Description copied from interface: DataSetError
        Returns the positive error along the Y axis of a point specified by the index. Please note that errors are assumed to be always positive!
        Specified by:
        getYErrorPositive in interface DataSetError
        Parameters:
        index - of positive Y error to be returned.
        Returns:
        positive Y error
      • getStyle

        public java.lang.String getStyle​(int index)
        Description copied from class: AbstractDataSet
        A string representation of the CSS style associated with this specific DataSet data point. @see #getStyle()
        Specified by:
        getStyle in interface DataSet
        Overrides:
        getStyle in class AbstractDataSet<D extends AbstractTestFunction<D>>
        Parameters:
        index - the index of the specific data point
        Returns:
        user-specific data set style description (ie. may be set by user)
      • generateX

        public double[] generateX​(int count)
        Description copied from interface: TestDataSet
        generate test data set
        Specified by:
        generateX in interface TestDataSet<D extends AbstractTestFunction<D>>
        Parameters:
        count - number of bins
        Returns:
        the generated array