sampleWeights | R Documentation |
Sample random weights \lambda_1, ... \lambda_n, \sum_{i=1}^{n} \lambda_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.