|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectppotentials.Potential
public class Potential
Probability potential are an example of a valuation algebra and this class offers a possible implementation of the valuation interface for the case of probability potentials.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface nenok.va.Scalability |
---|
Scalability.Implementor |
Constructor Summary | |
---|---|
protected |
Potential(PP_Variable[] variables,
double[] probabilities)
Private constructor: Sets instance fields and performs dimension check. |
|
Potential(PP_Variable variable,
double[] probabilities)
Constructor: |
|
Potential(PP_Variable variable,
PP_Variable[] conditionals,
double[] probabilities)
Constructor: |
Method Summary | |
---|---|
Valuation |
combine(Valuation val)
|
JComponent |
displayChart()
Displays the current potential as a chart. |
String |
displayText()
|
boolean |
equals(Object o)
|
double[] |
getProbabilities()
|
protected int |
getSymbolIndex(int varPos,
int configuration)
This method returns the index of the variable's value at a specifique configuration. |
protected PP_Variable[] |
getVariables()
|
Regularity |
inverse()
|
Domain |
label()
|
Valuation |
marginalize(Domain dom)
|
Predictor |
predictor()
|
Scalability |
scale()
|
String |
toString()
|
int |
weight()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Potential(PP_Variable variable, double[] probabilities)
variable
- The main variable of this potential.probabilities
- The probability for each possible configuration.public Potential(PP_Variable variable, PP_Variable[] conditionals, double[] probabilities)
variable
- The main variable of this potential.conditionals
- The conditional variables of this potential.probabilities
- The probability for each possible configuration.protected Potential(PP_Variable[] variables, double[] probabilities)
variables
- An array of discrete variables.probabilities
- An array of probabilities.Method Detail |
---|
public Domain label()
label
in interface Valuation
Valuation.label()
public Valuation combine(Valuation val)
combine
in interface Valuation
Valuation.combine(nenok.va.Valuation)
public Valuation marginalize(Domain dom)
marginalize
in interface Valuation
Valuation.marginalize(nenok.va.Domain)
public int weight()
weight
in interface Valuation
Valuation.weight()
public Predictor predictor()
predictor
in interface Predictability
Predictability.predictor()
public Regularity inverse()
inverse
in interface Regularity
Regularity.inverse()
public Scalability scale()
scale
in interface Scalability
Scalability.scale()
public boolean equals(Object o)
equals
in class Object
Object.equals(java.lang.Object)
public String displayText()
public JComponent displayChart()
public String toString()
toString
in class Object
Object.toString()
protected int getSymbolIndex(int varPos, int configuration)
varPos
- The variable caracterized by its position.configuration
- The configuration
getSymbol(0,3)
returns the index of variable 0's symbol at configuration 3.protected PP_Variable[] getVariables()
public double[] getProbabilities()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |