ByteCodeMutation | R Documentation |
This function is a C++ wrapper for mutating byte representation of a given candidate solution
ByteCodeMutation(bytes1, pmutation)
bytes1 |
A vector of bytes of a candidate solution |
pmutation |
Probability of mutation |
Byte vector of mutated solution
Mehmet Hakan Satman - mhsatman@istanbul.edu.tr
ByteCodeMutationUsingDoubles
set.seed(1246)
print(pi)
bytes <- DoubleToBytes(pi)
mutated.bytes <- ByteCodeMutation(bytes, 0.10)
new.var <- BytesToDouble(mutated.bytes)
print(new.var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.