Nothing
# Uniform crossover 2
ux2 = function(x1, x2, cxon, cxps, ...){
m = length(x1)
if(missing(cxon)) cxon = 2
if(missing(cxps)) cxps = 0.5
offsprings = matrix(NA, nrow=cxon, ncol=m)
for(i in seq(from=1, to=cxon, by=2)){
y1 = x1
y2 = x2
p = runif(m, 0, 1) # Probabilities vector
y1[p > cxps] = x2[p > cxps]
y2[p > cxps] = x1[p > cxps]
offsprings[i,] = y1
if(i==cxon & cxon%%2==1) break
offsprings[i+1,] = y2
}
return(offsprings)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.