rtnorm_mutation {hmsr} | R Documentation |
Given the domain bounds and standard deviation returns a function compatible with GA interface that performs a mutation on the given individual using truncated normal distribution.
rtnorm_mutation(lower, upper, sd)
lower |
|
upper |
|
sd |
|
Function that takes two parameters (the GA object object
and an individual to perform the mutation on parent
) and returns
a new individual that is the result of normal mutation applied to the parent.
mutation <- rtnorm_mutation(
lower = rep(-500, 5),
upper = rep(500, 5),
sd = rep(50, 5)
)