예제 #1
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="ProbBetweenOp"]/message_doc[@name="ProbBetweenAverageConditional(CanGetProbLessThan{double}, Gaussian, Gaussian)"]/*'/>
 public static Gaussian ProbBetweenAverageConditional(CanGetProbLessThan <double> canGetProbLessThan, [RequiredArgument] Gaussian lowerBound, [RequiredArgument] Gaussian upperBound)
 {
     if (lowerBound.IsPointMass && upperBound.IsPointMass)
     {
         return(Gaussian.PointMass(canGetProbLessThan.GetProbBetween(lowerBound.Point, upperBound.Point)));
     }
     else
     {
         throw new NotSupportedException();
     }
 }
예제 #2
0
파일: Factor.cs 프로젝트: kant2002/infer
 public static double ProbBetween <T>(CanGetProbLessThan <T> canGetProbLessThan, T lowerBound, T upperBound)
 {
     return(canGetProbLessThan.GetProbBetween(lowerBound, upperBound));
 }