|
||||||||||
| 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.DoubleWrapper
| Field Summary | |
protected double |
value
|
| Constructor Summary | |
DoubleWrapper(double value)
|
|
| Method Summary | |
FieldElement |
add(FieldElement val)
Calculates the sum of this FieldElement and another one. |
int |
compareTo(java.lang.Object o)
Implements Comparable.compareTo(Object). |
FieldElement |
divide(FieldElement val)
Calculates the quotient of this element and another one. |
double |
doubleValue()
Returns the double-precision floating-point value of this element. |
boolean |
equals(FieldElement val)
Checks two FieldElements 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. |
double |
sqrt()
Returns the square root of this value. |
FieldElement |
subtract(FieldElement val)
Calculates the product of this element and another one. |
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 |
ge, gt, isOne, isZero, le, lt |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected double value
| Constructor Detail |
public DoubleWrapper(double value)
| Method Detail |
public FieldElement add(FieldElement val)
FieldElement
add in class FieldElementval -
public FieldElement subtract(FieldElement val)
subtract in class FieldElementval -
public FieldElement multiply(FieldElement val)
multiply in class FieldElementval -
public FieldElement divide(FieldElement val)
divide 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 double doubleValue()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparablecompareTo in class FieldElemento - the object
public double sqrt()
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 | |||||||||