UniformCrossOver: Uniform Crossover operation on the two vectors of bytes

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RcppExports.R

Description

This function is a C++ wrapper for crossing-over of two byte vectors of candidate solutions

Usage

1
UniformCrossOver(bytes1, bytes2)

Arguments

bytes1

A vector of bytes of the first parent

bytes2

A vector of bytes of the second parent

Value

List of two byte vectors of offspring

Author(s)

Mehmet Hakan Satman - mhsatman@istanbul.edu.tr

See Also

OnePointCrossOver

UniformCrossOverOnDoublesUsingBytes

Examples

1
2
3
4
5
b1 <- DoubleVectorToBytes(c(56.54, 89.7666, 98.565))
b2 <- DoubleVectorToBytes(c(79.76, 56.4443, 34.22121))
result <- UniformCrossOver(b1,b2)
print(ByteVectorToDoubles(result[[1]]))
print(ByteVectorToDoubles(result[[2]]))

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

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