C++
C#
VB
JScript
All

# norm_fft

Copyright (C) 2005 IENT-RWTH Aachen

template<class G1,class G2> inline void norm_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 norm_fft(const Vector<G> &X)

FFT squared magnitude of a signal, energy spectrum

Parameters

Y | The FFT squared magnitude
X | The signal

Returns

Dense array of real elements

Example

    DenseVector<complex<float> >::self X(4, 1);
    DenseVector<float>::self Y;
    Y=norm_fft(X);

See Also

fft, abs_fft