ByteCodeMutation: Mutation operator for byte representation of double values

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
ByteCodeMutation(bytes1, pmutation)

Arguments

bytes1

A vector of bytes of a candidate solution

pmutation

Probability of mutation

Value

Byte vector of mutated solution

Author(s)

Mehmet Hakan Satman - mhsatman@istanbul.edu.tr

See Also

ByteCodeMutationUsingDoubles

Examples

1
2
3
4
5
6
set.seed(1246)
print(pi)
bytes <- DoubleToBytes(pi)
mutated.bytes <- ByteCodeMutation(bytes, 0.10) 
new.var <- BytesToDouble(mutated.bytes)
print(new.var)


Search within the mcga package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.