Documentation of 'org.encog.ml.bayesian.query.sample.EventState' Java class
EventState
org.encog.ml.bayesian.query.sample

Class EventState

  • All Implemented Interfaces:
    java.io.Serializable


    public class EventState
    extends java.lang.Object
    implements java.io.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
    • 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
      • 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:
        toString in class java.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

You see the box below because you did not login.