필터 지우기
필터 지우기

k mean clustering on ip address

조회 수: 3 (최근 30일)
Jay Hanuman
Jay Hanuman 2016년 11월 26일
댓글: Walter Roberson 2016년 11월 27일
I attached ip address data file. I want to apply k mean clustering on ip address data, how to do it. as ip address has 4 numbers can it possible to map data in 4 dimension and form cluster.
  댓글 수: 1
Image Analyst
Image Analyst 2016년 11월 27일
It should be able to. Make the array into 4 columns with as many rows as you have ip addresses. How many clusters did you want, k? And do you want k clusters on the 4-D array as a whole, or k clusters on each set of numbers separately/individually?

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

답변 (1개)

Walter Roberson
Walter Roberson 2016년 11월 26일
Map each entry into a row vector of a 2D array and cluster on the 2D array that results.
  댓글 수: 4
Jay Hanuman
Jay Hanuman 2016년 11월 27일
but how to cluster on the 2D array
Walter Roberson
Walter Roberson 2016년 11월 27일
"idx = kmeans(X,k) performs k-means clustering to partition the observations of the n-by-p data matrix X into k clusters, and returns an n-by-1 vector (idx) containing cluster indices of each observation. Rows of X correspond to points and columns correspond to variables."

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

Community Treasure Hunt

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

Start Hunting!

Translated by