|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.retro.neural.FieldElement
org.retro.neural.F2
| Field Summary | |
int |
value
|
| Constructor Summary | |
F2(int value)
Builds an element from an integer value. |
|
| Method Summary | |
FieldElement |
add(FieldElement val)
Calculates the sum of this element and another one. |
int |
compareTo(java.lang.Object o)
Implements Comparable.compareTo(Object). |
boolean |
equals(FieldElement val)
Checks two elements for equality. |
FieldElement |
instance(double dval)
Returns an instance of this FieldElement to be used in computing mean and other values. |
FieldElement |
invert()
Calculates the inverse element of multiplication for this element. |
FieldElement |
multiply(FieldElement val)
Calculates the product of this element and another one. |
FieldElement |
negate()
Calculates the inverse element of addition for this element. |
FieldElement |
one()
Returns the neutral element of multiplication (one element) of this element's field. |
java.lang.String |
toString()
Returns a String representation of this element. |
FieldElement |
zero()
Returns the neutral element of addition (zero element) of this FieldElement's field. |
| Methods inherited from class org.retro.neural.FieldElement |
divide, ge, gt, isOne, isZero, le, lt, subtract |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int value
| Constructor Detail |
public F2(int value)
| Method Detail |
public FieldElement add(FieldElement val)
add in class FieldElementval -
public FieldElement multiply(FieldElement val)
multiply in class FieldElementval -
public FieldElement negate()
negate in class FieldElement
public FieldElement invert()
throws InvalidOperationException
invert in class FieldElementInvalidOperationException - if original value is zeropublic FieldElement zero()
zero in class FieldElementpublic FieldElement one()
one in class FieldElementpublic boolean equals(FieldElement val)
equals in class FieldElementval -
public java.lang.String toString()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class FieldElemento - the object
public FieldElement instance(double dval)
instance in class FieldElementdval - the value to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||