dict_recombinators_xounif | R Documentation |
Values between two individuals are exchanged with component-wise independent probability.
This is a pseudo-class: It does not create a single R6-object of a class;
instead, it creates the object rec("cmpmaybe", rec("swap"), p = 0.5)
,
making use of the RecombinatorCmpMaybe
and RecombinatorSwap
operators.
RecombinatorCrossoverUniform(keep_complement = TRUE)
keep_complement |
( |
an object of class Recombinator
: rec("cmpmaybe", rec("swap"))
.
Supported Domain
classes are: p_lgl
('ParamLgl'), p_int
('ParamInt'), p_dbl
('ParamDbl'), p_fct
('ParamFct')
This Recombinator
can be created with the short access form rec()
(recs()
to get a list), or through the the dictionary
dict_recombinators
in the following way:
# preferred: rec("xounif") recs("xounif") # takes vector IDs, returns list of Recombinators # long form: dict_recombinators$get("xounif")
Other recombinators:
OperatorCombination
,
Recombinator
,
RecombinatorPair
,
dict_recombinators_cmpmaybe
,
dict_recombinators_convex
,
dict_recombinators_cvxpair
,
dict_recombinators_maybe
,
dict_recombinators_null
,
dict_recombinators_proxy
,
dict_recombinators_sbx
,
dict_recombinators_sequential
,
dict_recombinators_swap
,
dict_recombinators_xonary
set.seed(1)
rx = rec("xounif")
print(rx)
p = ps(x = p_int(-5, 5), y = p_dbl(-5, 5), z = p_dbl(-5, 5))
data = data.frame(x = 0:5, y = 0:5, z = 0:5)
rx$prime(p)
rx$operate(data)
rx$param_set$values$p = 0.3
rx$operate(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.