[-1,1] class encoding with symmetric function.