@Test
public void testTransform()
{

    double[] signal = getSampleSignal(1024);
    double[] real = new double[signal.length];
    System.arraycopy(signal, 0, real, 0, signal.length);
    double[] imag = new double[signal.length];
    FFT.transform(real, imag, false);
    FFT.transform(real, imag, true);
    double err = MathUtils.sumSquaredError(signal, real);
    Assert.assertTrue("Error: "+err, err<1.E-16);
}