I'd say that webpage made a mistake putting frequency in the equation.
Positive square wave with duration T and frequency f
He has not defined "duration"
and he's only
inferred a square wave moving between zero and some positive value.
if by "duration T" he means "T is the
fraction of time that the square wave is positive not zero"; well that is duty cycle.
and frequency does NOT enter the equation. Putting it in there undefined was IMHO poor technical writing at best...
It should be obvious that for a wave that's positive half the time and zero half the time, ie T=0.5, its average is half its positive value.
If instead he means that T is the number of (micro? pico? femto?)seconds per cycle that the wave is positive, and that f is the number of cycles per second(observe not necessarily an integer), then F X T is the
fraction of any second during which the wave is positive not zero. And that's duty cycle too.
So even if he's not technically incorrect, his ambiguity certainly misled you to a wrong conclusion .Beware of references from the internet . Always corroborate between at least two of them.
Make sure one of them is an institute of higher learning -
it's not that academics know more than practicing science folks , just they are trained to explain things unambiguously and define their terms up front.
Hence the old saying "If you want to really learn a subject, Teach It ! "
We working engineers are by and large notoriously bad at exposition. That's why engineering curricula include a few credit hours of Literature - in hope some of the writing skills will rub off.
old jim
edit - as usual miles said it in 1/10 as many words...