But that may just nullify the f(x) is all f(x) > 0
What I want is to fit a series of boxcar or rectangular functions of
"different" sizes that approximate the same area, as these are
non-homogenous rectangles Riemann integral wont work
Yes the f(x) is sum of different k cosine curves having different periods
and phase that I have constructed by Fourier transform. I am not looking
for Fourier transform of a square wave, I have the fourier transformed
linear combination and I want to identify the stable regions a series of
step functions
Thank You