In engineering terms, this would be called a first-order low-pass filter with the transfer function:
G(s) = 1/(tau*s + 1)
and the time constant
tau = averaging_time.
The initial value of the output can be set. By default, it assumes a value of zero.