var_mean#
- var_mean(x, rep_x)[source]#
Compute
var()andmean()under symmetry constraints.- Parameters:
x (
Tensor) – (Tensor) samples with shape \((N,D_x)\) or \((N,D_x,T)\).rep_x (
Representation) – (Representation) representation \(\rho_{\mathcal{X}}\).
- Returns:
Tuple
(var, mean)where mean is projected to \(\mathcal{X}^{\text{inv}}\) and variance satisfies irrep-wise isotropy in spectral basis.- Return type:
- Shape:
x: \((N,D_x)\) or \((N,D_x,T)\).
Output:
(var, mean)both with shape \((D_x,)\).