I am looking for a (Hilbert) space of (real-valued) functions on $\mathbb{R}^n$ where the following map defines an inner product: $$ (f,g) \mapsto \lim_{T\to\infty} \frac{1}{\mathrm{Vol}[-T,T]^n}\int_{[-T, T]^n}f(x)\overline{g(x)} dx. $$ This looks similar to the space of almost periodic functions. However, I want my space to contain all of the indicator functions of periodic sets (which Bersicovitch space does not).
The best I can come up with is to just take the set of all functions $f$ for which the mean of squares $$ \lim_{T\to\infty} \frac{1}{\mathrm{Vol}[-T,T]^n}\int_{[-T, T]^n}|f(x)|^2 dx $$ is well-defined and finite. To make it into a Hilbert space, I just take the quotient by everything that has mean-value zero. Is this a well-known space? I did not find anything in the literature.