public class ProbabilitySemiring extends Semiring
Constructor and Description |
---|
ProbabilitySemiring() |
Modifier and Type | Method and Description |
---|---|
float |
divide(float w1,
float w2)
Semiring's divide operation
|
boolean |
isMember(float w)
Checks if a value is a valid one the semiring
|
float |
one()
Semiring's one element
|
float |
plus(float w1,
float w2)
Semiring's plus operation
|
float |
reverse(float w1) |
float |
times(float w1,
float w2)
Semiring's times operation
|
float |
zero()
Semiring's zero element
|
equals, naturalLess, toString
public float plus(float w1, float w2)
Semiring
public float times(float w1, float w2)
Semiring
public float divide(float w1, float w2)
Semiring
public float zero()
Semiring
public float one()
Semiring
public boolean isMember(float w)
Semiring