ByteCodeMutation: Mutation operator for byte representation of double values

View source: R/RcppExports.R

ByteCodeMutationR Documentation

Mutation operator for byte representation of double values

Description

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

Usage

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

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 Nov. 27, 2023, 5:12 p.m.