A formula for a symmetry detective

Detectives are used to determine the symmetry of attractors in finite-dimensional systems. We derive an explicit formula for a symmetry detective for each representation of a finite group.