nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MachineLearning.Bootstrapping / AliasMethod

AliasMethod

Full name Microsoft.VisualBasic.MachineLearning.Bootstrapping.node2vec.AliasMethod Assembly Microsoft.VisualBasic.MachineLearning.Bootstrapping Members 2

01 Syntax

Microsoft.VisualBasic.MachineLearning.Bootstrapping.node2vec.AliasMethod

02 Methods

NameOverloadsSummary
.ctor 1 Constructs a new node2vec.AliasMethod to sample from a discrete distribution and hand back outcomes based on the probability distribution.
next 1 Samples a value from the underlying distribution.

03 Members

method .ctor #
#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
NameTypeDescription
probabilitiesIList(Of Double)

The list of probabilities.

method next #
next

Samples a value from the underlying distribution.

Returns

A random value sampled from the underlying distribution.