Click or drag to resize
VariableSubstring Method
Microsoft Research
Creates a string random variable which is a substring of a given string.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
Syntax
public static Variable<string> Substring(
	Variable<string> str,
	Variable<int> start,
	Variable<int> length
)

Parameters

str
Type: MicrosoftResearch.Infer.ModelsVariableString
The string.
start
Type: MicrosoftResearch.Infer.ModelsVariableInt32
The substring start index.
length
Type: MicrosoftResearch.Infer.ModelsVariableInt32
The substring length.

Return Value

Type: VariableString
The created random variable for the substring of str.
See Also