-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Cluster Algorithm? #1
Comments
Hey Chris, I was actually playing around with something similar a few months ago and The algorithm should be fairly easy to adapt since you can easily mess I have a variation of this class that uses my geokv github project instead Jilles package com.localstream.processing.clustering; import static com.localstream.common.Fields.point; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map.Entry; import java.util.Set; import com.github.jsonj.JsonObject; import com.google.common.collect.HashMultimap; import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.Sets; import com.jillesvangurp.geo.GeoGeometry; import com.jillesvangurp.geo.GeoHashUtils; public class InMemoryGeoHashDbScanClustering {
cluster.
intminimumClusterSize) {
:ImmutableMultimap.copyOf(points).entries())
cluster, nearBy);
// private void expandCluster(JsonObject p, Set visited, // cluster.add(p); // clustered.add(p); // for(JsonObject o: ImmutableSet.copyOf(nearBy)) { // if(!clustered.contains(o)) { // cluster.add(o); // clustered.add(o); // } // if(!visited.contains(o)) { // visited.add(o); // Set nearBy2 = getNearBy(o); // expandCluster(o, visited, clustered, cluster, nearBy2); // } // } // }
visited, Set clustered, Set cluster,
} On Thu, Feb 21, 2013 at 7:43 AM, Christopher Schmidt <
|
Hi Jilles, thanks for your answer and code. I'll test it... |
1st: Thanks for this great library...
We have a common use case to show clustered data because we cannot show thousands of POIs in a map window. The algorithms I found are using single points for that and are very slow on large data. Shouldn't it be possible to combine this clustering with the more performance oriented GeoHashes? In fact GeoHashes are already a grid clustering and aggregation. Do you know a lib or a algorithm?
The text was updated successfully, but these errors were encountered: