Beispiel #1
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="DiscreteEnumFromDirichletOp{TEnum}"]/message_doc[@name="LogEvidenceRatio(TEnum, Dirichlet)"]/*'/>
 public static double LogEvidenceRatio(TEnum sample, Dirichlet probs)
 {
     return(DiscreteFromDirichletOp.LogEvidenceRatio(EnumSupport.EnumToInt(sample), probs));
 }
Beispiel #2
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="DiscreteEnumFromDirichletOp{TEnum}"]/message_doc[@name="AverageLogFactor(TEnum, Vector)"]/*'/>
 public static double AverageLogFactor(TEnum sample, Vector probs)
 {
     return(DiscreteFromDirichletOp.AverageLogFactor(EnumSupport.EnumToInt(sample), probs));
 }