|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.mathutil.matrices.BiPolarUtil
public final class BiPolarUtil
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.
| Method Summary | |
|---|---|
static double |
bipolar2double(boolean b)
Convert a boolean to a bipolar number. |
static double[] |
bipolar2double(boolean[] b)
Convert a boolean array to a bipolar array. |
static double[][] |
bipolar2double(boolean[][] b)
|
static boolean |
double2bipolar(double d)
Convert a bipolar value to a boolean. |
static boolean[] |
double2bipolar(double[] d)
Convert a bipolar array to booleans. |
static boolean[][] |
double2bipolar(double[][] d)
Convert a bipolar array to a boolean array. |
static double |
normalizeBinary(double d)
Normalize a binary number. |
static double |
toBinary(double d)
Convert bipolar to binary. |
static double |
toBiPolar(double d)
Convert binary to bipolar. |
static double |
toNormalizedBinary(double d)
Convert to binary and normalize. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double bipolar2double(boolean b)
b - A boolean value.
public static double[] bipolar2double(boolean[] b)
b - A an array of boolean values.
public static double[][] bipolar2double(boolean[][] b)
b - An array of boolean values.
public static boolean double2bipolar(double d)
d - A bipolar value.
public static boolean[] double2bipolar(double[] d)
d - A bipolar array.
public static boolean[][] double2bipolar(double[][] d)
d - A bipolar array.
public static double normalizeBinary(double d)
d - A number to normalize to binary.
public static double toBinary(double d)
d - A bipolar number.
public static double toBiPolar(double d)
d - A binary number.
public static double toNormalizedBinary(double d)
d - A number to convert to binary.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||