/// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="DiscreteEnumAreEqualOp{TEnum}"]/message_doc[@name="BAverageConditional(bool, TEnum, DiscreteEnum{TEnum})"]/*'/> public static DiscreteEnum <TEnum> BAverageConditional(bool areEqual, TEnum A, DiscreteEnum <TEnum> result) { return(DiscreteEnum <TEnum> .FromDiscrete(DiscreteAreEqualOp.BAverageConditional(areEqual, ToInt(A), result.GetInternalDiscrete()))); }
/// <include file='FactorDocs.xml' path='factor_docs/message_op_class[@name="DiscreteEnumAreEqualOp{TEnum}"]/message_doc[@name="BAverageConditional(Bernoulli, TEnum, DiscreteEnum{TEnum})"]/*'/> public static DiscreteEnum <TEnum> BAverageConditional([SkipIfUniform] Bernoulli areEqual, TEnum A, DiscreteEnum <TEnum> result) { return(DiscreteEnum <TEnum> .FromDiscrete(DiscreteAreEqualOp.BAverageConditional(areEqual, ToInt(A), result.GetInternalDiscrete()))); }