sampleWeights | R Documentation |
Sample random weights λ_1, ... λ_n, ∑_{i=1}^{n} λ_i = 1 for weighted-sum scalarization.
sampleWeights(n)
n |
[ |
[numeric
] Weight vector.
sampleWeights(2) weights = replicate(10, sampleWeights(3L)) colSums(weights)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.