Exemplo n.º 1
0
 public static Gaussian ArrayAverageConditional <GaussianList>([SkipIfUniform] Gaussian sum, [Proper] IList <Gaussian> array, int resultIndex)
 {
     // when using ProductOp_SHG09 as the parent, 'array' is already the marginal
     //      return FastSumOp.ArrayAverageLogarithm2(sum, array, to_array);
     return(FastSumOp.ArrayAverageLogarithm7(sum, array, resultIndex));
 }
Exemplo n.º 2
0
        /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="SumOp2"]/message_doc[@name="ArrayAverageConditional(double, IList{Gaussian}, int)"]/*'/>
        public static Gaussian ArrayAverageConditional([SkipIfUniform] double sum, [Proper, MatchingIndex] IList <Gaussian> array, int resultIndex)
        {
            Gaussian to_sum = FastSumOp.SumAverageConditional(array);

            return(ArrayAverageConditional(Gaussian.PointMass(sum), to_sum, array, resultIndex));
        }