Skip to content

changing Distance has no effect #11

@localdevjs

Description

@localdevjs

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions