I have five data points (A, B, C, D, E) in a two dimensional plane. Based on the euclidean distance between these points how can I group them?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have five data points (A, B, C, D, E) in a two dimensional plane where three points (A, B, D) are close to each other and remaining two (C, E) are far from the group. If I calculate the distances between these points the results are
dist(A, B) = 0.3, dist(A, C) = 1.3, dist(A, D) = 0.15, dist(A, E) = 1.0, dist(B, C) = 0.9, dist(B, D) =0.2, dist(B, E) = 1.1, dist(C, D)=1.6, dist(C, E) = 1.0, dist(D, E) = 1.5.
Now if I choose a distance threshold as 0.6, I need to get a result as:
A, B, D (Closer to each other)
C (far from other points)
E (far from other points)
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!