ByteCodeMutationUsingDoubles function

Mutation operator for byte representation of double values

Mutation operator for byte representation of double values

This function is a C++ wrapper for mutating byte representation of a given candidate solution

ByteCodeMutationUsingDoubles(d, pmutation)

Arguments

  • d: A vector of doubles
  • pmutation: Probability of mutation

Returns

Double vector of mutated solution

Examples

set.seed(1246) print(pi) print(exp(1)) new.var <- ByteCodeMutationUsingDoubles(c(pi, exp(1)), 0.10) print(new.var)

Author(s)

Mehmet Hakan Satman - mhsatman@istanbul.edu.tr

See Also

ByteCodeMutation

  • Maintainer: Mehmet Hakan Satman
  • License: GPL (>= 2)
  • Last published: 2023-11-27

Useful links