基于“权重”将XY位置分配给点他们之间
我在图表中有一堆点,对于每一对这些点,我都有“权重”值,指示它们的接近度应该在-1和1之间。
我想为这些点选择 XY 坐标,以便那些具有接近度为1的位置相同,接近度为-1的位置彼此远离。所有点必须位于有界区域内。
我应该研究哪些算法来实现这一目标?
I have a bunch of points in a graph, and for every pair of these points I have "weight" value indicating what their proximity should be, between -1 and 1.
I want to choose XY coordinates for these points such that those that have a proximity of 1 are in the same position, and those with a proximity of -1 are distant from each-other. All points must reside within a bounded area.
What algorithms should I investigate to achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您正在寻找弹簧方程。
Maybe you're looking for a spring equation.