Ejemplo n.º 1
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="SparseBernoulliFromBetaOp"]/message_doc[@name="ProbTrueConditional(ISparseList{bool}, SparseBetaList)"]/*'/>
 public static SparseBetaList ProbTrueConditional(ISparseList <bool> sample, SparseBetaList result)
 {
     result.SetToFunction(sample, s => BernoulliFromBetaOp.ProbTrueConditional(s));
     return(result);
 }
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="BernoulliIntegerSubsetFromBeta"]/message_doc[@name="ProbTrueConditional(IList{int}, SparseBetaList)"]/*'/>
 public static SparseBetaList ProbTrueConditional(IList <int> sample, SparseBetaList result)
 {
     result.SetToFunction(BernoulliIntegerSubset.SubsetToList(sample, result.Count), s => BernoulliFromBetaOp.ProbTrueConditional(s));
     return(result);
 }