Documentation of 'org.spaceroots.mantissa.functions.scalar.SampledFunction' Java class
SampledFunction
org.spaceroots.mantissa.functions.scalar

Interface SampledFunction

    • Method Detail

      • size

        int size()
        Get the number of points in the sample.
        Returns:
        number of points in the sample
      • samplePointAt

        ScalarValuedPair samplePointAt(int index)
                                throws java.lang.ArrayIndexOutOfBoundsException,
                                       FunctionException
        Get the abscissa and value of the sample at the specified index.
        Parameters:
        index - index in the sample, should be between 0 and size() - 1
        Returns:
        abscissa and value of the sample at the specified index
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - if the index is wrong
        FunctionException - if an eventual underlying function throws one

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.