示例#1
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="RatioGaussianOp"]/message_doc[@name="LogAverageFactor(Gaussian, double, double)"]/*'/>
 public static double LogAverageFactor(Gaussian ratio, double a, double b)
 {
     return(ratio.GetLogProb(Factor.Ratio(a, b)));
 }
示例#2
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="RatioGaussianOp"]/message_doc[@name="LogAverageFactor(double, double, double)"]/*'/>
 public static double LogAverageFactor(double ratio, double a, double b)
 {
     return((ratio == Factor.Ratio(a, b)) ? 0.0 : Double.NegativeInfinity);
 }