/// <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(); } }
public static double ProbBetween <T>(CanGetProbLessThan <T> canGetProbLessThan, T lowerBound, T upperBound) { return(canGetProbLessThan.GetProbBetween(lowerBound, upperBound)); }