Interface Sampleable<T>
Whether the distribution supports sampling
Namespace: Microsoft.ML.Probabilistic.Distributions
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public interface Sampleable<T>
Type Parameters
Name | Description |
---|---|
T | The sample type (i.e. the domain type) |
Methods
Sample()
Sample the distribution
Declaration
T Sample()
Returns
Type | Description |
---|---|
T | The sample value |
Sample(T)
Sample the distribution and provide a place to put the result.
Declaration
T Sample(T result)
Parameters
Type | Name | Description |
---|---|---|
T | result | Where to put the result. This is ignored for value-type domains |
Returns
Type | Description |
---|---|
T |