Multinomial Distribution
This node generates samples from a list of strings/tokens.
Installation
To use this Node, you must enable omni.replicator.core
in the Extension Manager.
Inputs
Name |
Type |
Description |
Default |
---|---|---|---|
choices |
|
The choices to be sampled |
|
weights |
|
The weights with which to sample |
|
seed |
|
Random Number Generator seed. A value of less than 0 will indicate using the global seed. |
-1 |
numSamples |
|
Number of samples to generate |
1 |
withReplacements |
|
Whether to avoid duplicates in sampling. |
True |
Outputs
Name |
Type |
Description |
Default |
---|---|---|---|
samples |
|
Sampled results |
|
numSamples |
|
Number of samples to generate |
1 |