With the help of scipy.rfft() method, we can compute the fast fourier transformation for real sequence and return the transformed vector by using this method.
Syntax : scipy.fft.rfft(x)
Return : Return the transformed vector.
Example #1 :
In this example we can see that by using scipy.rfft() method, we are able to compute the fast fourier transformation for real sequence and return the transformed vector by using this method.
[10. +0.j -2.5+3.4409548j -2.5+0.81229924j]
Example #2 :
[45. +0.j -5.+15.38841769j -5. +6.8819096j -5. +3.63271264j
-5. +1.62459848j -5. +0.j ]
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course