Home Units Hierarchy Routines All identifiers

Class unaFFTclass

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type unaFFTclass = class(unaObject)

Description

Simple FFT.

Hierarchy

Overview

Methods

Public constructor create(T: int);
Public destructor Destroy(); override;
Public procedure fft(input: pFloatArray; output: pComplexFloatArray); overload;
Public procedure fft(input: pComplexFloat; output: pComplexFloat); overload;
Public procedure fft(input: pComplexFloatArray; output: pComplexFloatArray); overload;
Public procedure fft(input: pFloat; output: pComplexFloat); overload;
Public procedure fftInverse(input: pComplexFloatArray; output: pComplexFloatArray); overload;
Public procedure fftInverse(input: pComplexFloat; output: pComplexFloat); overload;
Public procedure setup(T: int);
Protected procedure fFFT_reduce(X: pComplexFloat; offs, count, maxDepth: int; depth: int = 0);

Properties

Protected property log2ws: int read f_log2ws write setLog2ws;
Protected property r[index:int]: int read getR;
Public property windowSize: int read f_windowSize;
Protected property ws[index:int]: tComplexFloat read getWS;

Description

Methods

Public constructor create(T: int);

Creates and FFT objec and prepares internal variables for FFT.

Parameters
T
windowsSize = 2**T
Public destructor Destroy(); override;
 
Public procedure fft(input: pFloatArray; output: pComplexFloatArray); overload;

FFT, real input (single)

Public procedure fft(input: pComplexFloat; output: pComplexFloat); overload;

FFT, complex input (single)

Public procedure fft(input: pComplexFloatArray; output: pComplexFloatArray); overload;

FFT, complex input (single)

Public procedure fft(input: pFloat; output: pComplexFloat); overload;

FFT, real input (single)

Public procedure fftInverse(input: pComplexFloatArray; output: pComplexFloatArray); overload;

Inverse FFT on complex values (single)

Public procedure fftInverse(input: pComplexFloat; output: pComplexFloat); overload;

Inverse FFT on complex values (single)

Public procedure setup(T: int);

Prepares internal variables for FFT.

Parameters
T
windowsSize = 2**T
Protected procedure fFFT_reduce(X: pComplexFloat; offs, count, maxDepth: int; depth: int = 0);

//

Properties

Protected property log2ws: int read f_log2ws write setLog2ws;

log2(windowSize)

Protected property r[index:int]: int read getR;

this could be useful

Public property windowSize: int read f_windowSize;

Size of windows (in samples).

Protected property ws[index:int]: tComplexFloat read getWS;
 

(c) 2012 Lake of Soft


Generated by PasDoc 0.12.1 on 2012-10-09