/// <summary>
 /// Convert a state to a simple string. (probability expression) 
 /// </summary>
 /// <param name="state">The state.</param>
 /// <returns>A probability expression as a string.</returns>
 public static String ToSimpleString(EventState state)
 {
     return BayesianEvent.FormatEventName(state.Event, state.CompareValue);
 }
 /// <summary>
 /// Finalize the query structure.
 /// </summary>
 public void FinalizeStructure()
 {
     _events.Clear();
     foreach (BayesianEvent e in _network.Events)
     {
         _events[e] = new EventState(e);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Convert a state to a simple string. (probability expression)
 /// </summary>
 /// <param name="state">The state.</param>
 /// <returns>A probability expression as a string.</returns>
 public static String ToSimpleString(EventState state)
 {
     return(BayesianEvent.FormatEventName(state.Event, state.CompareValue));
 }