instances
Class MaxPotential

java.lang.Object
  extended by nenok.va.sr.SRValuation
      extended by nenok.va.sr.OSRValuation
          extended by instances.MaxPotential
All Implemented Interfaces:
Serializable, Labeled, Predictability, Valuation

public class MaxPotential
extends OSRValuation

Probability potential are an example of a valuation algebra and this class offers an according implementation. It is based on the semiring framework and allows to build two different kinds of semiring instances. With respect to the enum type defined in this class, either probability potentials over the arithmetic semiring or max-probability potentials over the tropical semiring are created.

Version:
$LastChangedRevision: 574 $
$LastChangedDate: 2008-03-26 14:50:48 +0100 (Mi, 26 Mrz 2008) $
Author:
Marc Pouly
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class nenok.va.sr.SRValuation
SRValuation.SRPredictor
 
Nested classes/interfaces inherited from interface nenok.va.Predictability
Predictability.Implementor
 
Field Summary
 
Fields inherited from class nenok.va.sr.SRValuation
values, variables
 
Constructor Summary
MaxPotential(FiniteVariable[] vars, int[] values)
          Constructor:
MaxPotential(FiniteVariable[] vars, MaxTropical[] values)
          Constructor:
MaxPotential(FiniteVariable var, int[] values)
          Constructor:
 
Method Summary
 SRValuation create(FiniteVariable[] vars, Semiring[] values)
           
 
Methods inherited from class nenok.va.sr.OSRValuation
displayExtension, getExtension, getSolutionConfiguration, marginalize
 
Methods inherited from class nenok.va.sr.SRValuation
combine, equals, evaluate, getValues, getVariables, label, predictor, toString, weight
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MaxPotential

public MaxPotential(FiniteVariable var,
                    int[] values)
Constructor:

Parameters:
var - The single variable of this semiring valuation.
values - The values assigned to each configuration.

MaxPotential

public MaxPotential(FiniteVariable[] vars,
                    MaxTropical[] values)
Constructor:

Parameters:
vars - The variables of this semiring valuation.
values - The semiring value for each possible configuration.

MaxPotential

public MaxPotential(FiniteVariable[] vars,
                    int[] values)
Constructor:

Parameters:
vars - The variables of this semiring valuation.
values - The value assigned to each configuration.
Method Detail

create

public SRValuation create(FiniteVariable[] vars,
                          Semiring[] values)
Specified by:
create in class SRValuation
See Also:
SRValuation.create(nenok.va.FiniteVariable[], nenok.va.sr.Semiring[])