|
CFEngine API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.recommender.algorithms.Experimental.ContinuousDecisionTree
Helps parse a decision tree by processing begin/end element events. Works with continuous probability distributions, represented as binary Gaussians, rather than multinomials. Stores a representation of the decision tree in memory.
Field Summary | |
(package private) BinGaussian |
currBinGaussian
|
(package private) org.recommender.algorithms.Experimental.ContinuousDecisionTree.Branch |
currBranch
|
(package private) float |
currMean
|
(package private) float |
currProbMissing
|
(package private) float |
currSD
|
(package private) org.recommender.algorithms.Experimental.ContinuousDecisionTree.Vertex |
currVertex
|
(package private) org.recommender.algorithms.Experimental.ContinuousDecisionTree.Vertex |
headVertex
|
(package private) java.util.ArrayList |
inputVars
|
(package private) java.util.HashMap |
inputVarStates
|
(package private) int |
printIndent
|
Constructor Summary | |
ContinuousDecisionTree()
Construct a ContinuousDecisionTree with the given input variables. |
Method Summary | |
void |
beginBranch()
Method called when a <Branch> tag is encountered. |
void |
beginVertex(StartElementEvent vertex)
Method called when a <Vertex> tag is encountered. |
void |
endBinGaussian()
Method called when a <BinGaussian> tag is encountered. |
void |
endBranch()
Method called when a </Branch> tag is encountered. |
void |
endMean(java.lang.String contents)
Method called when a </Mean> tag is encountered. |
void |
endProbMissing(java.lang.String contents)
Method called when a </ProbMissing> tag is encountered. |
void |
endSD(java.lang.String contents)
Method called when a </SD> tag is encountered. |
void |
endValues(java.lang.String values)
Method called when a </Values> tag is encountered. |
void |
endVertex()
Method called when a </Vertex> tag is encountered. |
float |
getProb(float state,
float[] allStates)
Returns the relative probability that this variable is in a specified state, given the states of all other variables in the network. |
protected java.lang.String |
tabs()
|
java.lang.String |
toString()
Convert this object to a String representation, in XML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
java.util.ArrayList inputVars
java.util.HashMap inputVarStates
org.recommender.algorithms.Experimental.ContinuousDecisionTree.Vertex headVertex
org.recommender.algorithms.Experimental.ContinuousDecisionTree.Vertex currVertex
org.recommender.algorithms.Experimental.ContinuousDecisionTree.Branch currBranch
BinGaussian currBinGaussian
float currMean
float currSD
float currProbMissing
int printIndent
Constructor Detail |
public ContinuousDecisionTree()
Method Detail |
public float getProb(float state, float[] allStates)
public void beginVertex(StartElementEvent vertex)
public void endVertex()
public void beginBranch()
public void endValues(java.lang.String values)
values
- contents of the <Values> tagpublic void endBranch()
public void endMean(java.lang.String contents)
public void endSD(java.lang.String contents)
public void endProbMissing(java.lang.String contents)
public void endBinGaussian()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String tabs()
|
CFEngine API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |