ppotentials
Class Potential

java.lang.Object
  extended by nenok.va.sr.SRValuation
      extended by ppotentials.Potential
All Implemented Interfaces:
Serializable, Labeled, Predictability, Scalability, Separativity, Valuation

public class Potential
extends SRValuation
implements Scalability

Probability potential are an example of a valuation algebra and this class offers an according implementation. It is based on the semiring framework by extensing the pre-implementation of valuation algebras induced by separative semirings. Furthermore, probability potentials are scalable and therefore, the according interface Scalability is implemented.

Version:
$LastChangedRevision: 568 $
$LastChangedDate: 2008-03-26 14:42:35 +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.Scalability
Scalability.Implementor
 
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
Potential(FiniteVariable var, double... values)
          Constructor:
Potential(FiniteVariable var, FiniteVariable[] conditionals, double... values)
          Constructor:
 
Method Summary
 SRValuation create(FiniteVariable[] vars, Semiring[] values)
           
 JPanel displayChart()
          Displays the current potential as a chart.
 Separativity inverse()
           
 Scalability scale()
           
 
Methods inherited from class nenok.va.sr.SRValuation
combine, equals, evaluate, getValues, getVariables, label, marginalize, predictor, toString, weight
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface nenok.va.Valuation
combine, marginalize, weight
 
Methods inherited from interface nenok.adapt.Labeled
label
 

Constructor Detail

Potential

public Potential(FiniteVariable var,
                 double... values)
Constructor:

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

Potential

public Potential(FiniteVariable var,
                 FiniteVariable[] conditionals,
                 double... values)
Constructor:

Parameters:
var - The variable that is conditioned.
conditionals - The conditional variables.
values - The value for 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[])

inverse

public Separativity inverse()
Specified by:
inverse in interface Separativity
See Also:
Separativity.inverse()

scale

public Scalability scale()
Specified by:
scale in interface Scalability
See Also:
Scalability.scale()

displayChart

public JPanel displayChart()
Displays the current potential as a chart.

Returns:
The current potential as a chart.