org.encog.ml.bayesian.parse
Class ParsedEvent
- java.lang.Object
-
- org.encog.ml.bayesian.parse.ParsedEvent
-
public class ParsedEvent extends java.lang.ObjectA parsed event.
-
-
Constructor Summary
Constructors Constructor and Description ParsedEvent(java.lang.String theLabel)Construct a parsed even with the specified label.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetLabel()java.util.List<ParsedChoice>getList()java.lang.StringgetValue()intresolveValue(BayesianEvent actualEvent)Resolve the event to an actual value.voidsetValue(java.lang.String value)Set the value for this event.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ParsedEvent
public ParsedEvent(java.lang.String theLabel)
Construct a parsed even with the specified label.- Parameters:
theLabel- The label for this event.
-
-
Method Detail
-
getValue
public java.lang.String getValue()
- Returns:
- The value for this event, or null if undefined.
-
setValue
public void setValue(java.lang.String value)
Set the value for this event.- Parameters:
value- The value for this event.
-
getLabel
public java.lang.String getLabel()
- Returns:
- The label for this event.
-
resolveValue
public int resolveValue(BayesianEvent actualEvent)
Resolve the event to an actual value.- Parameters:
actualEvent- The actual event.- Returns:
- The value.
-
getList
public java.util.List<ParsedChoice> getList()
- Returns:
- A list of choices.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG