Don't allow uniform-deletion to delete :gap
This commit is contained in:
parent
28ab925601
commit
b40aff3d6d
@ -130,8 +130,10 @@ The function `new-individual` returns a new individual produced by selection and
|
|||||||
[plushy umad-rate]
|
[plushy umad-rate]
|
||||||
(if (zero? umad-rate)
|
(if (zero? umad-rate)
|
||||||
plushy
|
plushy
|
||||||
(remove (fn [_] (< (rand)
|
(remove (fn [item]
|
||||||
(/ 1 (+ 1 (/ 1 umad-rate)))))
|
(and (not= item :gap)
|
||||||
|
(< (rand)
|
||||||
|
(/ 1 (+ 1 (/ 1 umad-rate))))))
|
||||||
plushy)))
|
plushy)))
|
||||||
|
|
||||||
(defn bmx
|
(defn bmx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user