Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Need help for classification

조회 수: 1 (최근 30일)
Meddour Aissam riad
Meddour Aissam riad 2019년 5월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi everyone, it's my first time here
So! i have used K-means algorithm to visualise the centroid of a data set
here is an exemple of the result that i could get
untitled.jpg
The little x is the centroid of the distrubution (speed/acceleration)
here the centroid is X=24 Y=2.3
I want to split the graph into small regions. and according to the position of my centroid, I can apply an action or display a text ,
PS: I do not want to use If statement , ​​because this algorithm is intended for a real-time application
  댓글 수: 1
Adam
Adam 2019년 5월 22일
편집: Adam 2019년 5월 22일
'split the graph into small regions' is a bit vague. I'm not sure what you are actually asking for help with here.
Also, you shouldn't be pre-deciding what elements of the language you want to use in an ad-hoc way because you are using a real-time application. There is no more reason why an if statement is unsuitable for real-time applications than any number of other things. Find solutions to problems, then if the code is too slow run a profiler to see what part of it is too slow and start trying to optimise it. Don't jump ahead pre-optimising things that may or may not be a problem.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by