I am new to programming in Java, and new to apach.commons.math3 library. I want to use fft in order to transform time series into Fourier series. the time series is saved in array of double named input. I'm using the following line to call the transform function:
Complex[] fourierSereis=FastFourierTransformer.transform(input,TransformType.FORWARD);
ButI get the following error:
Cannot make a static reference to the non-static method transform(double[], TransformType) from the type FastFourierTransformer
Can someone please explain me what does that error means and what should I do to make it work?
Thank you
You have to create an object of FastFourierTransformer type and then call this method because it's not a static method of this class.