marytts.tests.junit4
Class FFTTest

java.lang.Object
  extended by marytts.tests.junit4.FFTTest

public class FFTTest
extends java.lang.Object

Author:
Marc Schröder

Field Summary
protected  int LEN
           
protected  int ONE
           
protected  double[] x1
           
protected  double[] x2
           
protected  double[] y
           
 
Constructor Summary
FFTTest()
           
 
Method Summary
static double[] getSampleSignal(int length)
           
static double[] getSampleSignal(int lengthInSamples, int samplingFrequency, int signalFrequency)
           
 void setUp()
           
protected  FunctionGraph showGraph(double[] array, java.lang.String title)
           
 void testConvolution()
           
 void testFIRConvolution()
           
 void testTransform()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEN

protected int LEN

ONE

protected int ONE

x1

protected double[] x1

x2

protected double[] x2

y

protected double[] y
Constructor Detail

FFTTest

public FFTTest()
Method Detail

showGraph

protected FunctionGraph showGraph(double[] array,
                                  java.lang.String title)

setUp

public void setUp()

testTransform

public void testTransform()

testConvolution

public void testConvolution()

testFIRConvolution

public void testFIRConvolution()

getSampleSignal

public static double[] getSampleSignal(int length)

getSampleSignal

public static double[] getSampleSignal(int lengthInSamples,
                                       int samplingFrequency,
                                       int signalFrequency)