Definition (class function)

Let $G$ be a group.

A function $f: G\to \C$ is a class function if it is constant on conjugacy classes of $G$, i.e. $f(hgh\inv) = f(g)$ for all $g,h\in G$.

Write $\mathcal{C}_G$ for the complex vector space of all class functions.

If $G$ is finite, equip $\mathcal{C}_G$ with the inner product $$ \begin{align*} \langle f, f'\rangle = \frac{1}{\# G} \sum_{g\in G} \overline{f(g)}\, f'(g) = \sum_{j=1}^{k} \frac{1}{\# Z_G(g_j)} \overline{f(g_j)} \,f'(g_j). \end{align*} $$ where $\prescript{G}{}g_1, \ldots, \prescript{G}{}g_k$ are all the conjugacy classes of $G$ and $Z_G(g_j)$ is the centraliser of $g_j$.

If $G$ is finite, then we have a basis $\set{δ_1, \ldots, δ_k}$ for $\mathcal{C}_G$ where $δ_j(g) = 1$ if $g\in \prescript{G}{}g_j$ and $0$ otherwise.