Infer.NET Documentation
Attrib Method (attr)
Infer.NET code documentationMicrosoftResearch.Infer.ModelsVariableAttrib(Object)
Microsoft Research, Cambridge
Inline method for adding an attribute to a variable. This method returns the variable object, so that is can be used in an inline expression. e.g. Variable.GaussianFromMeanAndVariance(0,1).Attrib(new MyAttribute());
Declaration Syntax
C#Visual BasicVisual C++
public Variable Attrib(
	Object attr
)
Public Function Attrib ( _
	attr As Object _
) As Variable
public:
Variable^ Attrib(
	Object^ attr
)
Parameters
attr (Object)
The attribute to add
Return Value
The variable object

Assembly: Infer.Compiler (Module: Infer.Compiler) Version: 2.3.41111.0 (2.3.41111.0)