BiPolarUtil ClassEncog Machine Learning Framework for .Net
This class contains a number of utility methods used to work with bipolar numbers. A bipolar number is another way to represent binary numbers. The value of true is defined to be one, where as false is defined to be negative one.
Inheritance Hierarchy

System Object
  Encog.MathUtil.Matrices BiPolarUtil

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

public class BiPolarUtil

The BiPolarUtil type exposes the following members.

Constructors

  NameDescription
Public methodBiPolarUtil
Initializes a new instance of the BiPolarUtil class
Top
Methods

  NameDescription
Public methodStatic memberBipolar2double(Boolean)
Convert binary to bipolar, true is 1 and false is -1.
Public methodStatic memberBipolar2double( Boolean )
Convert a boolean array to bipolar, true is 1 and false is -1.
Public methodStatic memberBipolar2double(  Boolean  )
Convert a 2D boolean array to bipolar, true is 1 and false is -1.
Public methodStatic memberDouble2bipolar(Double)
Convert biploar to boolean, true is 1 and false is -1.
Public methodStatic memberDouble2bipolar( Double )
Convert a bipolar array to a boolean array, true is 1 and false is -1.
Public methodStatic memberDouble2bipolar(  Double  )
Convert a 2D bipolar array to a boolean array, true is 1 and false is -1.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberNormalizeBinary
Normalize a binary number. Greater than 0 becomes 1, zero and below are false.
Public methodStatic memberToBinary
Convert a single number from bipolar to binary.
Public methodStatic memberToBiPolar
Convert a number to bipolar.
Public methodStatic memberToNormalizedBinary
Normalize a number and convert to binary.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also