Skip to content
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

changing Distance has no effect #11

Open
localdevjs opened this issue Sep 20, 2018 · 1 comment
Open

changing Distance has no effect #11

localdevjs opened this issue Sep 20, 2018 · 1 comment

Comments

@localdevjs
Copy link

This data is a double[], where each value is a "foot above sea level". We might have 14,000 values, spanning from 100 feet to 8500 feet (for example).

We are evaluating dbscan and meanshift as a way to detect clusters in this data, even though it is only 1 dimensional.

This does work, but we have tried using different Distances found in this class:
com.clust4j.metrics.pairwise.Distance

However switching the Distances has no effect on the clustering results. We get the same clustering regardless of which Distance is used.

Does that sound normal or am I missing something and using the library incorrectly?

double[] data = ...
MeanShiftParameters p = new MeanShiftParameters();
p.setMetric(Distance.valueOf("EUCLIDEAN"));
RealMatrix mat = new Array2DRowRealMatrix(data);
MeanShift ms = p.fitNewModel(mat);

Thanks!

@tgsmith61591
Copy link
Owner

Hey there, thanks for the issue. Can you provide a sample of your data for me to work with? (Or would randomly creating values between 100 to 8500 suffice?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants