Description Usage Arguments Value Examples
View source: R/numeric_chromosome.R
Scale values of numeric chromosome to the specified range. Numeric chromosome is a numeric vector with values within [0, 1].
| 1 | scale_numeric_chromosome(chromosome, min = 0, max = 1)
 | 
| chromosome | Numeric chromosome | 
| min | Minimal value(s) which item in chromosome can represent | 
| max | Maximal value(s) which item in chromosome can represent | 
Numeric vector with converted chromosme values
| 1 2 3 4 | # Generate numeric chromosome with 10 items
chromosome <- runif(10)
# Scale values of numeric chromosome to [-5, 5]
scale_numeric_chromosome(chromosome, -5, 5)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.