简体   繁体   English

收集不规则形状的数据点

[英]Gather data points in an irregular shape

I am working on the visualization of a cluster analysis problem. 我正在研究集群分析问题。

I have 5 centers defined by 5 points in a 2d space. 我有2个空间中5个点定义的5个中心。 This centers will define classes this way: 这些中心将以这种方式定义类:

The class of every data-point is defined by the closest center to it (euclidean distance). 每个数据点的类别由与其最接近的中心(欧式距离)定义。

I did the work to define the class of every data-point but I am looking for a way to gather all the data of the same cluster in an irregular shape. 我做了工作来定义每个数据点的类,但是我正在寻找一种以不规则形状收集同一群集的所有数据的方法。

What I tried so far is this: 到目前为止,我尝试过的是:

在此处输入图片说明

The problem is that when I use the circle form, some of data-points that belong to one class will be outside. 问题是,当我使用circle表单时,属于一个类的某些数据点将位于外部。

Is there some way to gather each cluster in an irregular shape with smooth border? 有什么方法可以使每个簇以不规则的形状聚集并具有平滑的边界?

Thanks in advance! 提前致谢!

What you're describing is a Voronoi diagram. 您要描述的是一个Voronoi图。 D3 has some functions for working with them. D3具有一些与之配合使用的功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM