ppotentials
Class SRPotential
java.lang.Object
nenok.va.semiring.SRValuation
nenok.va.semiring.RegularSRValuation
nenok.va.semiring.ScaledSRValuation
ppotentials.SRPotential
- All Implemented Interfaces:
- Serializable, Cloneable, Predictability, Regularity, Scalability, Valuation
public class SRPotential
- extends ScaledSRValuation
Probability potential are an example of a scaled semiring induced valuation algebra
and this class offers a possible implementation by extending the ScaledSRValuation
class. The variables used within this class are of type PP_Variable
.
- Version:
- 1.1
- Author:
- Marc Pouly
- See Also:
- Serialized Form
SRPotential
public SRPotential()
- Constructor:
SRPotential
public SRPotential(PP_Variable variable,
double[] probabilities)
- Constructor:
- Parameters:
variable
- The main variable of this potential.probabilities
- The probability for each possible configuration.
SRPotential
public SRPotential(PP_Variable variable,
PP_Variable[] conditionals,
double[] probabilities)
- Constructor:
- Parameters:
variable
- The main variable of this potential.conditionals
- The conditional variables of this potential.probabilities
- The probability for each possible configuration.
displayChart
public JPanel displayChart()
- Displays the current potential as a chart.
- Returns:
- The current potential as a chart.
equals
public boolean equals(Potential p)
- Comparaison between the two implementation of probability potentials.
- Parameters:
p
- The probability potential to compare.
- Returns:
true
, if the two objects are equal by value.
getElements
public Element[] getElements()
- Returns:
- The array of semiring values that belongs to this potential.
getConfigurations
protected Configuration[] getConfigurations()
- Returns:
- The array of configurations within this potential.