/// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="BooleanOrOp"]/message_doc[@name="LogAverageFactor(Bernoulli, bool, bool)"]/*'/> public static double LogAverageFactor(Bernoulli or, bool a, bool b) { return(or.GetLogProb(Factor.Or(a, b))); }
/// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="BooleanOrOp"]/message_doc[@name="LogAverageFactor(bool, bool, bool)"]/*'/> public static double LogAverageFactor(bool or, bool a, bool b) { return((or == Factor.Or(a, b)) ? 0.0 : Double.NegativeInfinity); }