Description Usage Arguments Value Examples
View source: R/generate_weigths.R
Generates normalized weight vector of k dimensions and s divisions, so that each weight vector is near the previous one. It uses the method of generating reflected k-ary Gray codes.
| 1 | generate_weights(s, k)
 | 
| s | - divisions | 
| k | - dimension | 
The normalized weight vectors
| 1 2 | generate_weights(10, 2)
generate_weights(5, 3)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.