public abstract class Semiring
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected static int |
accuracy |
Constructor and Description |
---|
Semiring() |
Modifier and Type | Method and Description |
---|---|
abstract float |
divide(float w1,
float w2) |
boolean |
equals(java.lang.Object obj) |
abstract boolean |
isMember(float w) |
boolean |
naturalLess(float w1,
float w2)
NATURAL ORDER
By definition: a <= b iff a + b = a
The natural order is a negative partial order iff the semiring is
idempotent.
|
abstract float |
one() |
abstract float |
plus(float w1,
float w2) |
abstract float |
reverse(float w1) |
abstract float |
times(float w1,
float w2) |
java.lang.String |
toString() |
abstract float |
zero() |
protected static final int accuracy
public abstract float plus(float w1, float w2)
public abstract float reverse(float w1)
public abstract float times(float w1, float w2)
public abstract float divide(float w1, float w2)
public abstract float zero()
public abstract float one()
public abstract boolean isMember(float w)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean naturalLess(float w1, float w2)
w1
- first operandw2
- second operand