center point between 2 data group

can any body help me, i got a problem. in the picture, there are 2 data group.can any body tell me, how to find the algorithm to decide center point of two data group ( red mark point) and what the priciples can solve it ?
can i use matlab to solve it?

Antworten (1)

Image Analyst
Image Analyst am 1 Nov. 2013

0 Stimmen

Perhaps kmeans() in the Statistics Toolbox. Specify 2 clusters. Otherwise if you know what ranges your data lies in, in advance, you can sum your data points horizontally and look for the "gap", which you should find between 20 and 30 for this particular data set.

8 Kommentare

jakv
jakv am 1 Nov. 2013
excuse me,can you give me a reference about algorithm? sorry , i'm newbie
Sukuchha
Sukuchha am 1 Nov. 2013
type doc kmeans if yuou have statistics toolbox
jakv
jakv am 1 Nov. 2013
thanks all, i'll try it.
Image Analyst
Image Analyst am 2 Nov. 2013
So how did it work out?
jakv
jakv am 7 Nov. 2013
by the way, what the algorithm that i can be used to solved centroid in two cluster above? in other view, i don't have the spesified data of the cluster so i just to find out the algorithm only.
can anyone help me?
jakv
jakv am 7 Nov. 2013
by the way, what the algorithm that i can be used to solved centroid in two cluster above? in other view, i don't have the spesified data of the cluster so i just to find out the algorithm only.
can anyone help me?
Image Analyst
Image Analyst am 7 Nov. 2013
There are probably lots of algorithms. You can look up kmeans on the web if you want that algorithm (because you said you have two clusters). There are other methods such as http://www.mathworks.com/matlabcentral/fileexchange/35014-clusterdata if you don't know the number of clusters. Please mask my Answer as Ac we're done now.

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 1 Nov. 2013

Kommentiert:

am 7 Nov. 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by