org.encog.ml.bayesian.query.sample
Class EventState
- java.lang.Object
-
- org.encog.ml.bayesian.query.sample.EventState
-
- All Implemented Interfaces:
- java.io.Serializable
public class EventState extends java.lang.Object implements java.io.SerializableHolds the state of an event during a query. This allows the event to actually hold a value, as well as an anticipated value (compareValue).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description EventState(BayesianEvent theEvent)Construct an event state for the specified event.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetCompareValue()BayesianEventgetEvent()EventTypegetEventType()intgetValue()booleanisCalculated()booleanisSatisfied()voidrandomize(int... args)voidsetCalculated(boolean calculated)voidsetCompareValue(int compareValue)voidsetEventType(EventType eventType)voidsetValue(int value)static java.lang.StringtoSimpleString(EventState state)Convert a state to a simple string.java.lang.StringtoString()
-
-
-
Constructor Detail
-
EventState
public EventState(BayesianEvent theEvent)
Construct an event state for the specified event.- Parameters:
theEvent- The event to create a state for.
-
-
Method Detail
-
isCalculated
public boolean isCalculated()
- Returns:
- the calculated
-
setCalculated
public void setCalculated(boolean calculated)
- Parameters:
calculated- the calculated to set
-
getValue
public int getValue()
- Returns:
- the value
-
setValue
public void setValue(int value)
- Parameters:
value- the value to set
-
getEvent
public BayesianEvent getEvent()
- Returns:
- the event
-
getEventType
public EventType getEventType()
- Returns:
- the eventType
-
setEventType
public void setEventType(EventType eventType)
- Parameters:
eventType- the eventType to set
-
randomize
public void randomize(int... args)
-
getCompareValue
public int getCompareValue()
- Returns:
- the compareValue
-
setCompareValue
public void setCompareValue(int compareValue)
- Parameters:
compareValue- the compareValue to set
-
isSatisfied
public boolean isSatisfied()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toSimpleString
public static java.lang.String toSimpleString(EventState state)
Convert a state to a simple string. (probability expression)- Parameters:
state- The state.- Returns:
- A probability expression as a string.
-
-
DMelt 3.0 © DataMelt by jWork.ORG