public class TransformUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static Complex[] | createComplexArray(double[][] dataRI)Builds a new array of  Complexfrom the specified two dimensional
 array of real and imaginary parts. | 
| static double[][] | createRealImaginaryArray(Complex[] dataC)Builds a new two dimensional array of  doublefilled with the real
 and imaginary parts of the specifiedComplexnumbers. | 
| static int | exactLog2(int n)Returns the base-2 logarithm of the specified  int. | 
| static Complex[] | scaleArray(Complex[] f,
          double d)Multiply every component in the given complex array by the
 given real number. | 
| static double[] | scaleArray(double[] f,
          double d)Multiply every component in the given real array by the
 given real number. | 
public static double[] scaleArray(double[] f,
                  double d)
f - the real array to be scaledd - the real scaling coefficientpublic static Complex[] scaleArray(Complex[] f, double d)
f - the complex array to be scaledd - the real scaling coefficientpublic static double[][] createRealImaginaryArray(Complex[] dataC)
double filled with the real
 and imaginary parts of the specified Complex numbers. In the
 returned array dataRI, the data is laid out as follows
 dataRI[0][i] = dataC[i].getReal(),dataRI[1][i] = dataC[i].getImaginary().dataC - the array of Complex data to be transformedpublic static Complex[] createComplexArray(double[][] dataRI) throws DimensionMismatchException
Complex from the specified two dimensional
 array of real and imaginary parts. In the returned array dataC,
 the data is laid out as follows
 dataC[i].getReal() = dataRI[0][i],dataC[i].getImaginary() = dataRI[1][i].dataRI - the array of real and imaginary parts to be transformedComplex with specified real and imaginary parts.DimensionMismatchException - if the number of rows of the specified
   array is not two, or the array is not rectangularpublic static int exactLog2(int n)
                     throws MathIllegalArgumentException
int. Throws an
 exception if n is not a power of two.n - the int whose base-2 logarithm is to be evaluatednMathIllegalArgumentException - if n is not a power of twoCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.