|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnenok.va.sr.SRValuation
public abstract class SRValuation
Specifies a semiring induced valuation by leading its principal operations of marginalization & combination back to the according semiring operations.
Nested Class Summary | |
---|---|
class |
SRValuation.SRPredictor
Implementation of weight predictor class. |
Nested classes/interfaces inherited from interface nenok.va.Predictability |
---|
Predictability.Implementor |
Field Summary | |
---|---|
protected Semiring[] |
values
|
protected FiniteVariable[] |
variables
|
Constructor Summary | |
---|---|
SRValuation(FiniteVariable[] vars,
Semiring[] values)
Constructor: |
Method Summary | |
---|---|
Valuation |
combine(Valuation val)
Combination of valuations. |
abstract SRValuation |
create(FiniteVariable[] vars,
Semiring[] values)
Factory method: |
boolean |
equals(Object o)
|
Semiring |
evaluate(FiniteVariable[] vars,
Object[] conf)
Returns the semiring value of the given configuration. |
Semiring[] |
getValues()
|
FiniteVariable[] |
getVariables()
|
Domain |
label()
|
Valuation |
marginalize(Domain dom)
Marginalization of a valuation onto a given domain. |
Predictor |
predictor()
|
String |
toString()
|
int |
weight()
Weight function: |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected FiniteVariable[] variables
protected Semiring[] values
Constructor Detail |
---|
public SRValuation(FiniteVariable[] vars, Semiring[] values)
vars
- The variables of this semiring valuation.values
- The semiring value for each possible configuration.Method Detail |
---|
public abstract SRValuation create(FiniteVariable[] vars, Semiring[] values)
vars
- The variables of this semiring valuation.values
- The semiring value for each possible configuration.
public Domain label()
label
in interface Labeled
Labeled.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)
Valuation
marginalize
in interface Valuation
dom
- The domain onto this valuation is marginalized.
this
to dom
.Valuation.marginalize(nenok.va.Domain)
public int weight()
Valuation
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 Semiring evaluate(FiniteVariable[] vars, Object[] conf)
vars
- The variable array that specifies the configuration's order.conf
- The configuration whose value is returned.
null
if no such
configuration exists.public String toString()
toString
in class Object
Object.toString()
public Semiring[] getValues()
public FiniteVariable[] getVariables()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |