Sasha Lanning wrote:
> I am looking for the autocorrelation function for a specific kind of
> square wave. I need the autocorrelation function for a square wave
> with a variable duty cycle and a random phase shift along the period
> with amplitude -1 to 1.
The autocorrelation function you want can be obtained very easily by
integrating the product of the lagged waveform over one period. For an
arbitrary square wave, the value of this product must be -1, 0 or +1 at
each point, so the integration task is simply one of determining the
boundaries of the interval(s) within which the integrand adopts each of
its three values. Sketches help a lot here.
The problem you describe is a particularly simple example of
autocorrelation analysis, so I would urge you to invest some effort in
mastering it both conceptually and mathematically.
Charles Metz
=================================================================
Instructions for joining and leaving this list and remarks about
the problem of INAPPROPRIATE MESSAGES are available at
http://jse.stat.ncsu.edu/
=================================================================