R/gaussmut2.R

Defines functions gaussmut2

Documented in gaussmut2

# Gauss mutation 2
gaussmut2 = function(y, ...){
  m = length(y)
  v = sample(1:m, 1)
  y[v] = y[v]+rnorm(1)
  return(list(mutant=y, mutgen=v))
}

Try the adana package in your browser

Any scripts or data that you put into this service are public.

adana documentation built on March 18, 2022, 6:03 p.m.