The notation $E(f)$ is most commonly used in probability theory and this means simply just $\int_{X}fd\mu$ where $(X,\mu)$ is your measure space (it is called _expectation_ ). Therefore the only difference between those two relations is the fact that the second uses _real_ scalar product. In other words $g$ is real if and only if $\overline{g(t)}=g(t)$ for all $t$ and in this situation these two notions coincide.