ppotentials
Class Potential
java.lang.Object
nenok.va.sr.SRValuation
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
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.
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.