Fix an issue related to the FFT

The time vector was 1 element too long to perform a proper FFT
Fix a naming issue

the name of the function was wrong