C++
C#
VB
JScript
All

# abs_fft

Copyright (C) 2005 IENT-RWTH Aachen

template<class G1,class G2> inline void abs_fft (const Vector<G1> &X, Vector<G2> &Y)
template<class G> inline typename DenseVector<typename complex_traits<typename Vector<G>::value_type>::value_type>::self abs_fft (const Vector<G> &X)

FFT magnitude of a signal, magnitude spectrum

Parameters

Y | The FFT magnitude
X | The signal

Returns

Dense array of real elements

Example

    DenseVector<float>::self X(4, 1);
    DenseVector<float>::self Y(X.size());
    abs_fft(X,Y);

See Also

fft, norm_fft