|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnenok.va.semiring.SRValuation
public class SRValuation
Specifies a semiring induced valuation by leading its principal operations of
labeling, marginalization & combination back to the semiring operations.
Furthermore, all semiring induced valuation algebras possess a weight predictor.
Therefore, this class extends Predictability
.
Field Summary | |
---|---|
protected Configuration[] |
configurations
|
protected Element[] |
elements
|
Constructor Summary | |
---|---|
SRValuation()
Constructor: |
|
SRValuation(FiniteVariable[] variables,
Element[] elements)
Constructor: |
Method Summary | |
---|---|
Valuation |
combine(Valuation val)
Combination of valuations. |
String |
displayConfigurations()
|
boolean |
equals(Object o)
|
Domain |
label()
Labeling of a valuation. |
Valuation |
marginalize(Domain dom)
Marginalization of a valuation onto a given domain. |
Predictor |
predictor()
|
String |
toString()
|
int |
weight()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Configuration[] configurations
protected Element[] elements
Constructor Detail |
---|
public SRValuation()
public SRValuation(FiniteVariable[] variables, Element[] elements)
variables
- The variables of this valuation.elements
- The semiring elements assigned to the configurations.Method Detail |
---|
public Domain label()
Valuation
label
in interface Valuation
Valuation.label()
public Valuation combine(Valuation val)
Valuation
combine
in interface Valuation
val
- The second valuation involved in the combination.
this
and val
.Valuation.combine(nenok.va.Valuation)
public Valuation marginalize(Domain dom) throws VAException
Valuation
marginalize
in interface Valuation
dom
- The domain onto this valuation is marginalized.
this
to dom
.
VAException
- Exception occuring when a marginalization is performed onto an illegal domain.Valuation.marginalize(nenok.va.Domain)
public int weight()
weight
in interface Valuation
Valuation.weight()
public Predictor predictor()
predictor
in interface Predictability
Predictability.predictor()
public boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
public String displayConfigurations()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |