5 ms·You're going from {0,1} to {-1,1} using indices. Seems easier to just transform via (x*2-1).by dfeng 4y agoYou're going from {0,1} to {-1,1} using indices. Seems easier to just transform via (x*2-1).