Learn R Programming

mcga (version 3.0.7)

ByteCodeMutationUsingDoublesRandom: Mutation operator for byte representation of double values

Description

This function is a C++ wrapper for mutating byte representation of a given candidate solution. This mutation operator randomly changes a byte in the range of [0,255].

Usage

ByteCodeMutationUsingDoublesRandom(d, pmutation)

Value

Double vector of mutated solution

Arguments

d

A vector of doubles

pmutation

Probability of mutation

Author

Mehmet Hakan Satman - mhsatman@istanbul.edu.tr

See Also

ByteCodeMutation

Examples

Run this code
set.seed(1246)
print(pi)
print(exp(1))
new.var <- ByteCodeMutationUsingDoublesRandom(c(pi, exp(1)), 0.10)
print(new.var)

Run the code above in your browser using DataLab