For 0<μ(X)<0<\mu(X)<\infty, the zero-mean projection is

P0f=f1μ(X)Xfdμ.P_0f=f-\frac{1}{\mu(X)}\int_X f\,d\mu.

It is linear, its output has , and P02=P0P_0^2=P_0. It removes exactly the constant component.

Norms and parameters

On L2(X,μ)L^2(X,\mu), it is the orthogonal projection onto the complement of the constants, and P0f2f2\|P_0f\|_2\le\|f\|_2. For 1p1\le p\le\infty, Hölder's inequality gives P0fp2fp\|P_0f\|_p\le2\|f\|_p. The notation must specify XX and μ\mu; averaging only an auxiliary variable leaves the remaining variables as parameters.