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

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.7.1803.2803 (2.7.1803.2803)
public static Variable<string> StringNonWord(
	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