Hey everyone, I'm trying to learn how to manually do RMS calculation for Square Wave Signals. I've read the following in several places:

* Some say that for a Square wave, RMS = Peak but I believe they all assume that the signal is uniform with its centre at the origin.

* RMS = Peak / $\displaystyle \sqrt{2}$ , but I thought that was for sinusoidal waveforms.

Anyways, here is an example:

Notice how this square wave form is considerably off centre from the x axis, meaning the majority of the waveform is above the x-axis.

How do I calculate the RMS value?

Thank you - Samson