I have a sensor placed on vibration aggregate. When the aggregate is not working, my sensor produces some noise signal. So when my aggregate is working, my sensor produces "result" signal which is the sum of the vibration signal and the noise signal. I want to extract only the vibration (clean) signal from "result" signal. I'm trying to use one method for this and I want to know if it is correct:
I get a sample of the noise signal, take its spectrum (using real fft, let's call it $N$)
I get a sample of a "result" signal, also take its spectrum (using real fft, let's call it $Y$). Both samples have same size and sample rate and the length and resolution of the spectrums are the same.
I subtract vectorially from the spectrum of the "result" signal the spectrum of the noise signal to get my "clean" signal: $X = Y-N$.
To obtain a clean vibration signal, I apply the inverse real fft to $X$.