org.encog.ml.bayesian.query.sample
Class EventState
java.lang.Object
org.encog.ml.bayesian.query.sample.EventState
- All Implemented Interfaces:
- Serializable
public class EventState
- extends Object
- implements Serializable
Holds 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
EventState
public EventState(BayesianEvent theEvent)
- Construct an event state for the specified event.
- Parameters:
theEvent
- The event to create a state for.
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 String toString()
-
- Overrides:
toString
in class Object
toSimpleString
public static String toSimpleString(EventState state)
- Convert a state to a simple string. (probability expression)
- Parameters:
state
- The state.
- Returns:
- A probability expression as a string.
Copyright © 2014. All Rights Reserved.