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]
|
||||
(if (zero? umad-rate)
|
||||
plushy
|
||||
(remove (fn [_] (< (rand)
|
||||
(/ 1 (+ 1 (/ 1 umad-rate)))))
|
||||
(remove (fn [item]
|
||||
(and (not= item :gap)
|
||||
(< (rand)
|
||||
(/ 1 (+ 1 (/ 1 umad-rate))))))
|
||||
plushy)))
|
||||
|
||||
(defn bmx
|
||||
|
Loading…
x
Reference in New Issue
Block a user