Diffpack Documentation


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

FFT Class Reference

Fast Fourier sine and cosine transforms. More...

#include <FFT.h>

List of all members.

Static Public Methods

void sinft (VecSimple(real) &y, int n, int iflag)
void cosft (VecSimple(real) &y, int n)


Detailed Description

Fast Fourier sine and cosine transforms.

NAME: FFT - Fast Fourier sine and cosine transforms

DESCRIPTION:

The class is just a collection of 'static' functions for fast Fourier transforms. The algorithms are taken from Numerical Recipes, 2nd edition, rewritten in C++ and adapted to the Diffpack system.


Member Function Documentation

static void FFT::cosft ( VecSimple(real) & y,
int n ) [static]
 

calculates the cosine transform of a set "y" of "n+1" real-valued data points. The transformed data replace the original data in array "y". "n" must be a power of 2.

static void FFT::sinft ( VecSimple(real) & y,
int n,
int iflag ) [static]
 

calculates the sine transform of a set "y" of "n" real-valued data points. "y(1)=0". The transformed data replace the original data in array "y". "n" must be a power of 2. If "iflag" is 1, it means inverse transform.


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.