Skip to content

Commit

Permalink
Add float to mad.
Browse files Browse the repository at this point in the history
  • Loading branch information
lspector committed Feb 12, 2017
1 parent f849e2d commit 956763b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clojush/pushgp/parent_selection.clj
Expand Up @@ -77,7 +77,7 @@
(let [; Get median of x
x-median (median x)
; calculate absolute deviation from median
dev (map #(Math/abs (- % x-median))
dev (map #(Math/abs (float (- % x-median)))
x)]
(median dev)))

Expand Down Expand Up @@ -238,3 +238,4 @@
selected))



0 comments on commit 956763b

Please sign in to comment.