Click or drag to resize
Range Class
Microsoft Research
A range of values from 0 to N-1. The size N may be an integer expression or constant.
Inheritance Hierarchy
SystemObject
  MicrosoftResearch.Infer.ModelsRange

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public class Range : IModelExpression, IStatementBlock

The Range type exposes the following members.

Constructors
  NameDescription
Public methodRange(Int32)
Constructs a range containing values from 0 to N-1.
Public methodRange(IModelExpressionInt32)
Constructs a range whose size is given by an integer-value expression.
Top
Methods
  NameDescription
Public methodAddAttribute
Adds an attribute to this range. Attributes can be used to modify how inference is performed on the range.
Public methodAttrib
Inline method for adding an attribute to a range. This method returns the range object, so that is can be used in an inline expression.
Public methodClone
Create a copy of a range. The copy can be used to index the same arrays as the original range.
Public methodGetAttributesAttributeType
Get all attributes of this range having type AttributeType.
Public methodGetExpression
Gets the expression for the index variable
Public methodNamed
Inline method to name a range
Top
Properties
  NameDescription
Public propertyName
Name of the range
Public propertyParent
Range from which this range was cloned, or null if none.
Public propertySize
Model expression for size of the range
Public propertySizeAsInt
Returns the size of the range as an integer. This will fail if the size is not a constant, for example, if it is a Given value.
Top
Explicit Interface Implementations
See Also