ByteCodeMutation: Mutation operator for byte representation of double values

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RcppExports.R

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 - [email protected]

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)

mcga documentation built on May 29, 2017, 9:01 p.m.