Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Commit

Permalink
Fixed deprec on 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Mar 31, 2015
1 parent 4064723 commit 319a555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_monkey.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ size_data = 1000
data = rand(dim_data, size_data)

for j = 1:15
tree = KDTree(data, rand(1:15), randbool())
tree = KDTree(data, rand(1:15), rand(Bool))
n = rand(1:size_data)
idx, dist = knn(tree, data[:,n], rand(1:30))
@fact issorted(dist) => true
Expand Down Expand Up @@ -73,7 +73,7 @@ for rn in [true, false]
r = 0.3
# Brute force
for n in 1:size_data
d = sqrt(KDTrees.euclidean_distance_red([data[:,n]], p))
d = sqrt(KDTrees.euclidean_distance_red(data[:,n], p))
if d <= r # Closer than the currently k closest.
push!(idx, n)
end
Expand Down

0 comments on commit 319a555

Please sign in to comment.