09-05-2019 03:10 AM
Hey!
I'm trying to apply machine learning after taking FFT. In the waveform chart the magnitude is .7 as shown in the attached picture but when I try to get the magnitude of it by using simple indicator the value is in exponential. Can somebody please tell me how to just reduce it to below 1.
Secondly, how can I apply KNN on the magnitudes. There is no vi available in Machine learning toolkit
Regards
09-05-2019 04:10 AM - edited 09-05-2019 04:11 AM
Hi Chishti,
In the waveform chart the magnitude is .7 as shown in the attached picture but when I try to get the magnitude of it by using simple indicator the value is in exponential. Can somebody please tell me how to just reduce it to below 1.
So there are two problems:
09-05-2019 05:54 AM
Please find the attached vi
09-05-2019 07:39 AM
The VI you attached doesn't match the one in your picture because you don't have that "Magnitude" array indicator. My guess is you are only showing the first 4 elements or "bins" coming out of the FFT which are going to be nearly zero.
What do you mean by "get it below 1"?
09-05-2019 09:51 AM
If you by "get it to just below 1" mean Normalizing, you need to divide all values with the Max value of the FFT array, in this case ~0.73 (there's a find Array Max-function).
/Y