中文说明:%用法:[C,ptsC,centers]=dbscan(P,E,minPts)%%参数:%%P-dim x Npts点数组。%%E-距离阈值。%%minPts-形成簇所需的最小点数。%%返回:%%C-长度单元格数组与每个聚类%相关的点指数。%ptsC-列出与每个点%相关的聚类数的长度NPT数组。如果一个点被表示为噪声(在%附近不够);&元素组成一个簇)它的簇数是0.centers-每个簇的平均中心的dim x Nc数组。
English Description:
%Usage: [C, ptsC, centres] = dbscan(P, E, minPts)%% Arguments:% P - dim x Npts array of points.% E - Distance threshold.% minPts - Minimum number of points required to form a cluster.%% Returns:% C - Cell array of length Nc listing indices of points associated with% each cluster.% ptsC - Array of length Npts listing the cluster number associated with% each point. If a point is denoted as noise (not enough nearby% elements to form a cluster) its cluster number is 0.% centres - dim x Nc array of the average centre of each cluster.