cve
Class ContextualBeliefNetworkFromText
java.lang.Object
|
+--cve.ContextualBeliefNetwork
|
+--cve.ContextualBeliefNetworkFromText
- public class ContextualBeliefNetworkFromText
- extends ContextualBeliefNetwork
The class of ContextualBeliefNetwork
s constructed from an
extended CIspace representation.
Constructor Summary |
(package private) |
ContextualBeliefNetworkFromText(java.lang.String s,
int maxVariables)
constructs a belief network from the extended CIspace
representation. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
ContextualBeliefNetworkFromText
ContextualBeliefNetworkFromText(java.lang.String s,
int maxVariables)
- constructs a belief network from the extended CIspace
representation. The extended representation lets us have
indexes or names as the parents. It assumes that the names are
not numbers (otherwise it assumes they are the indexes).
- Parameters:
s
- string representation of the belief networkmaxVariables
- the maximum number of variables allowed
sorted
protected static boolean sorted(Variable[] varray)
stringToStringArray
protected static java.lang.String[] stringToStringArray(java.lang.String str,
int maxSize)
stringToParents
protected Variable[] stringToParents(java.lang.String str,
int index,
int maxSize)
- given the string, return the parents
- Parameters:
str
- the string containing the parents' index or nameindex
- the index of the current variablemaxSize
- the maximum factor size
stringToContext
protected Context stringToContext(java.lang.String str,
int maxSize)
- given the string, return the parents
- Parameters:
str
- the string containing the parents' index or nameindex
- the index of the current variablemaxSize
- the maximum factor size