Пример #1
0
 public static double Plus(double a, double b)
 {
     return(Factor.Plus(a, b));
 }
Пример #2
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="DoublePlusOp"]/message_doc[@name="LogAverageFactor(TruncatedGaussian, double, double)"]/*'/>
 public static double LogAverageFactor([SkipIfUniform] TruncatedGaussian sum, double a, double b)
 {
     return(sum.GetLogProb(Factor.Plus(a, b)));
 }
Пример #3
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="DoublePlusOp"]/message_doc[@name="LogAverageFactor(double, double, double)"]/*'/>
 public static double LogAverageFactor(double Sum, double a, double b)
 {
     return((Sum == Factor.Plus(a, b)) ? 0.0 : Double.NegativeInfinity);
 }
Пример #4
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="IntegerPlusOp"]/message_doc[@name="LogAverageFactor(Discrete, int, int)"]/*'/>
 public static double LogAverageFactor(Discrete sum, int a, int b)
 {
     return(sum.GetLogProb(Factor.Plus(a, b)));
 }