Ejemplo n.º 1
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="EnumToIntOp{TEnum}"]/message_doc[@name="LogAverageFactor(int, TEnum)"]/*'/>
 public static double LogAverageFactor(int Int, TEnum Enum)
 {
     return((EnumSupport.EnumToInt(Enum) == Int) ? 0.0 : Double.NegativeInfinity);
 }
Ejemplo n.º 2
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="DiscreteEnumFromDirichletOp{TEnum}"]/message_doc[@name="ProbsAverageLogarithm(TEnum, Dirichlet)"]/*'/>
 public static Dirichlet ProbsAverageLogarithm(TEnum sample, Dirichlet result)
 {
     return(DiscreteFromDirichletOp.ProbsAverageLogarithm(EnumSupport.EnumToInt(sample), result));
 }
Ejemplo n.º 3
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="DiscreteEnumFromDirichletOp{TEnum}"]/message_doc[@name="LogEvidenceRatio(TEnum, Vector)"]/*'/>
 public static double LogEvidenceRatio(TEnum sample, Vector probs)
 {
     return(DiscreteFromDirichletOp.LogEvidenceRatio(EnumSupport.EnumToInt(sample), probs));
 }
Ejemplo n.º 4
0
 /// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="DiscreteEnumFromDirichletOp{TEnum}"]/message_doc[@name="ProbsAverageConditional(TEnum, Dirichlet)"]/*'/>
 public static Dirichlet ProbsAverageConditional(TEnum sample, Dirichlet result)
 {
     return(DiscreteFromDirichletOp.ProbsAverageConditional(EnumSupport.EnumToInt(sample), result));
 }
Ejemplo n.º 5
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));
 }