apply knn over kmeans clustering

조회 수: 4 (최근 30일)
Supriya Gain
Supriya Gain 2020년 8월 9일
댓글: Image Analyst 2020년 8월 10일
In indoor localization if i did clustering a dataset by k-means clustering algorithm then is it possible to apply knn algorithm on that clusters to find positioning error.

답변 (1개)

Image Analyst
Image Analyst 2020년 8월 9일
No, I don't think so. kmeans() assigns a class to every point with no guidance at all. knn assigns a class based on a reference set that you pass it. What would you pass in for the reference set? The same set you used for kmeans()? If so, then there would be no error whatsoever because knn would simply assign each point to the same class that kmeans() did!
You would need to explain this better so that we know your thought process.
  댓글 수: 6
Supriya Gain
Supriya Gain 2020년 8월 9일
No. not like that
I'm explaining you. I have a excel data sheet. In that sheet in a single row A1,B1 is X,Y co-ordinate and C1 to K1 i have signal strength from 9 wifi routers. Now i have 80 rows like that.
And routers location doesn't matter.
Hope you understand now.
Image Analyst
Image Analyst 2020년 8월 10일
OK, but I still don't know what your classes represent. How many classes did you say you have? Like 3 for low strength, medium strength, and high strength router signal at the test point? Attach your workbook if you want us to use it.
For what it's worth, I'm attaching a demo where I determine the location of an explosion based on the value (time) at certain points. Kind of like if you wanted to locate each router based on the signal strengths at each of the 80 points.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by