Interface RealTransformer

    • Method Detail

      • transform

        double[] transform​(double[] f,
                           TransformType type)
                    throws MathIllegalArgumentException
        Returns the (forward, inverse) transform of the specified real data set.
        Parameters:
        f - the real data array to be transformed (signal)
        type - the type of transform (forward, inverse) to be performed
        Returns:
        the real transformed array (spectrum)
        Throws:
        MathIllegalArgumentException - if the array cannot be transformed with the given type (this may be for example due to array size, which is constrained in some transforms)
      • transform

        double[] transform​(UnivariateFunction f,
                           double min,
                           double max,
                           int n,
                           TransformType type)
                    throws MathIllegalArgumentException
        Returns the (forward, inverse) transform of the specified real function, sampled on the specified interval.
        Parameters:
        f - the function to be sampled and transformed
        min - the (inclusive) lower bound for the interval
        max - the (exclusive) upper bound for the interval
        n - the number of sample points
        type - the type of transform (forward, inverse) to be performed
        Returns:
        the real transformed array
        Throws:
        MathIllegalArgumentException - if the lower bound is greater than, or equal to the upper bound
        MathIllegalArgumentException - if the number of sample points is negative
        MathIllegalArgumentException - if the sample cannot be transformed with the given type (this may be for example due to sample size, which is constrained in some transforms)