Answer:
See below
Explanation:
We are looking for a function f such that
f(0) = -1
f(1) = 1
One of the simplest ones is the line that joins (0, -1) and (1,1)
y = 2x -1
So, if we have a Boolean n-vector in the first codification (0,1)
then
is the expression of Y in terms of X.
Similarly, the inverse function of the line, x = (y+1)/2, does the inverse transformation.
That is to say, if we have a vector
in the second codification -1 and +1
is the expression of X in terms of Y