Class FactorMethodAttribute
When applied to a class, indicates that the class provides message functions for a given factor.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors.Attributes
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = true)]
public class FactorMethodAttribute : Attribute
Constructors
FactorMethodAttribute(String[], Type, String, Type[])
Creates a new FactorMethod attribute
Declaration
public FactorMethodAttribute(string[] newParameterNames, Type type, string methodName, params Type[] parameterTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| String[] | newParameterNames | New names for factor parameters overriding the default choice of parameter names - these are used to name message passing methods |
| Type | type | Type which contains the factor definition |
| String | methodName | Method name for the factor |
| Type[] | parameterTypes | Parameter types for the factor |
FactorMethodAttribute(Type, String, Type[])
Creates a new FactorMethod attribute
Declaration
public FactorMethodAttribute(Type type, string methodName, params Type[] parameterTypes)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | Type which contains the factor definition |
| String | methodName | Method name for the factor |
| Type[] | parameterTypes | Parameter types for the factor |
Fields
Default
True if this class should override other classes for the same factor.
Declaration
public bool Default
Field Value
| Type | Description |
|---|---|
| Boolean |
MethodName
Method name for the factor
Declaration
public string MethodName
Field Value
| Type | Description |
|---|---|
| String |
NewParameterNames
New names for factor parameters overriding the default choice of parameter names
- these are used to name message passing methods
Declaration
public string[] NewParameterNames
Field Value
| Type | Description |
|---|---|
| String[] |
ParameterTypes
Parameter types for the factor
Declaration
public Type[] ParameterTypes
Field Value
| Type | Description |
|---|---|
| Type[] |
Type
Type which contains the factor definition
Declaration
public Type Type
Field Value
| Type | Description |
|---|---|
| Type |