/// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="SparseBernoulliFromBetaOp"]/message_doc[@name="SampleAverageConditional(ISparseList{double}, SparseBernoulliList)"]/*'/> public static SparseBernoulliList SampleAverageConditional(ISparseList <double> probTrue, SparseBernoulliList result) { result.SetToFunction(probTrue, pt => BernoulliFromBetaOp.SampleAverageConditional(pt)); return(result); }
/// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="SparseBernoulliFromBetaOp"]/message_doc[@name="SampleAverageLogarithm(SparseBetaList, SparseBernoulliList)"]/*'/> public static SparseBernoulliList SampleAverageLogarithm([SkipIfUniform] SparseBetaList probTrue, SparseBernoulliList result) { result.SetToFunction(probTrue, pt => BernoulliFromBetaOp.SampleAverageLogarithm(pt)); return(result); }