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