Click or drag to resize
VariableStringWord Method (VariableInt32, VariableInt32)
Microsoft Research
Creates a string random variable from a uniform distribution over all strings of word characters (see CharWord) with length in given bounds.

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.6.41128.1 (2.6.41128.1)
public static Variable<string> StringWord(
	Variable<int> minLength,
	Variable<int> maxLength = null


Type: MicrosoftResearch.Infer.ModelsVariableInt32
The minimum possible string length.
maxLength (Optional)
Type: MicrosoftResearch.Infer.ModelsVariableInt32
The maximum possible string length. If , there will be no upper limit on length.

Return Value

Type: VariableString
The created random variable.
If maxLength is set to , the resulting random variable has an improper distribution.
See Also