Package edu.msu.cme.rdp.classifier
Class GenusWordConditionalProb
java.lang.Object
edu.msu.cme.rdp.classifier.GenusWordConditionalProb
A GenusWordConditionalProb holds the index of the genus node,
and the conditional probability that genus node contains the word.
-
Constructor Summary
ConstructorsConstructorDescriptionGenusWordConditionalProb
(int index, float prob) Creates a new instance of GenusWordConditionalProb For a word indexed in wordConditionalProbIndexArr, it holds the index of the genus node, and the conditional probability that genus node contains the word. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the index of the genus nodefloat
Returns the conditional probability that the genus node contains the word.
-
Constructor Details
-
GenusWordConditionalProb
public GenusWordConditionalProb(int index, float prob) Creates a new instance of GenusWordConditionalProb For a word indexed in wordConditionalProbIndexArr, it holds the index of the genus node, and the conditional probability that genus node contains the word.
-
-
Method Details
-
getGenusIndex
public int getGenusIndex()Returns the index of the genus node -
getProbability
public float getProbability()Returns the conditional probability that the genus node contains the word.
-