Documentation For Encog 2.x

BiPolarUtil.Bipolar2double(Boolean) Method

Convert a 2D boolean array to bipolar, true is 1 and false is -1.

public static double[,] Bipolar2double(
   bool[,] b
);

Parameters

b
The 2D array to convert.

Return Value

A bipolar array.

See Also

BiPolarUtil Class | Encog.Matrix Namespace | BiPolarUtil.Bipolar2double Overload List