UniformCrossOverOnDoublesUsingBytes: Uniform Crossover operation on the two vectors of doubles...

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 double vectors of candidate solutions using their byte representations

Usage

1

Arguments

d1

A vector of doubles of the first parent

d2

A vector of doubles of the second parent

Value

List of two double vectors of offspring

Author(s)

Mehmet Hakan Satman - mhsatman@istanbul.edu.tr

See Also

OnePointCrossOver

OnePointCrossOverOnDoublesUsingBytes

Examples

1
2
3
4
5
6
7
8
9
d1 <- runif(3)
d2 <- runif(3)
offspring <- UniformCrossOverOnDoublesUsingBytes(d1,d2)
print("Parents:")
print(d1)
print(d2)
print("Offspring:")
print(offspring[[1]])
print(offspring[[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