center point between 2 data group
조회 수: 6 (최근 30일)
이전 댓글 표시

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?
댓글 수: 0
답변 (1개)
Image Analyst
2013년 11월 1일
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
Image Analyst
2013년 11월 7일
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.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!