/// <summary> /// Validate the truth table. /// </summary> public void Validate() { if (_lines.Count != this.MaxLines) { throw new BayesianError("Truth table for " + _event.ToString() + " only has " + _lines.Count + " line(s), should have " + this.MaxLines + " line(s)."); } }
/// <inheritdoc/> public override String ToString() { var result = new StringBuilder(); result.Append("[EventState:event="); result.Append(_event.ToString()); result.Append(",type="); result.Append(CurrentEventType.ToString()); result.Append(",value="); result.Append(Format.FormatDouble(_value, 2)); result.Append(",compare="); result.Append(Format.FormatDouble(CompareValue, 2)); result.Append(",calc="); result.Append(IsCalculated ? "y" : "n"); result.Append("]"); return(result.ToString()); }