From 9167661f20bf5a903fbcad5396c7f01844f6a063 Mon Sep 17 00:00:00 2001 From: "youwei.chen" Date: Tue, 18 Jul 2017 17:47:32 +0800 Subject: [PATCH] bug fix --- src/main/scala/nak/cluster/GDBSCAN.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/nak/cluster/GDBSCAN.scala b/src/main/scala/nak/cluster/GDBSCAN.scala index ed47568..a28517b 100644 --- a/src/main/scala/nak/cluster/GDBSCAN.scala +++ b/src/main/scala/nak/cluster/GDBSCAN.scala @@ -67,7 +67,7 @@ class GDBSCAN[T]( clustered add neighbour } // if the neighbour point is a cluster, join the neighbourhood - if (isCorePoint(neighbour, neighbourhood)) neighbourhood ++ newNeighbours else neighbourhood + if (isCorePoint(neighbour, newNeighbours)) neighbourhood ++ newNeighbours else neighbourhood } }