As others have suggested, there are analogue methods of averaging, using
mechanical, electrical or thermal techniques.
However, as this is presumably a fixed amplitude signal, simple digital
techniques are also available using the timing of the edges of the signal.
I won't mention the device-type of choice, as (1) everyone knows what it
is and (2) some go spare just at the mention of the acronym.
It will have many advantages - including that of a much faster response
time than any analogue system - as it will produce a valid output almost
immediately after the first pulse has been registered. However, it will,
of course, produce a quantised output signal which may need analogue
techniques to reduce the transient component.. ;)
Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here.
All logos and trade names are the property of their respective owners.