BiPolarUtil Bipolar2double Method (  Boolean  )Encog Machine Learning Framework for .Net
Convert a 2D boolean array to bipolar, true is 1 and false is -1.

Namespace: Encog.MathUtil.Matrices
Assembly: encog-core-cs (in encog-core-cs.dll) Version: 3.3.0.0 (3.3.0.0)
Syntax

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

Parameters

b
Type:   System Boolean  
The 2D array to convert.

Return Value

Type:   Double  
A bipolar array.
See Also