Click or drag to resize
VariableStringWhitespace Method (VariableInt32, VariableInt32)
Microsoft Research
Creates a string random variable from a uniform distribution over all strings of whitespace characters (see CharWhitespace) 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)
Syntax
public static Variable<string> StringWhitespace(
	Variable<int> minLength,
	Variable<int> maxLength = null
)

Parameters

minLength
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.
Remarks
If maxLength is set to , the resulting random variable has an improper distribution.
See Also