AliasMethod
01 Syntax
Microsoft.VisualBasic.MachineLearning.Bootstrapping.node2vec.AliasMethod
02 Methods
03 Members
#ctor(
IList(Of Double))Constructs a new node2vec.AliasMethod to sample from a discrete distribution and hand back outcomes based on the probability distribution.
Given as input a list of probabilities corresponding to outcomes 0, 1, ..., n - 1, along with the random number generator that should be used as the underlying generator, this constructor creates the probability and alias tables needed to efficiently sample from this distribution.
Parameters
| Name | Type | Description |
|---|---|---|
probabilities | IList(Of Double) | The list of probabilities. |
next
Samples a value from the underlying distribution.
Returns
A random value sampled from the underlying distribution.