Complex number in Root histogram?

Hi there,

I would like to do an FFT of a complex histogram “hm”, probably something like this:

hm_real = h -> FFT(hm, "Re C2CFORWARD");
hm_imaginary = h -> FFT(hm, "Im C2CFORWARD");

The problem is that I am not sure how to implement a complex histogram. I have the
real and imaginary components already in histograms, but do not know how to combine
them into one histogram “hm” so I can feed the complex histo into the complex FFT.
Does anyone have any suggestions … ? :question:

Thanks,
Penny

愛情萬歲
ComplexFFT.cxx (2.24 KB)

Wow, that is amazing. Thanks Pepe. I will study this.
Regards,
Penny