Comments (1)
你好,不好意思现在才注意到。两者还是有区别的。
- 将随机点直接与最近节点相连
我代码中的处理方式比较简单直接。当随机点与最近节点的距离小于步长时,直接将随机点作为新的节点添加到树中,并与最近节点相连。这样不需要进一步计算新节点的位置。缺点是可能会导致树的生长速度变慢,探索新区域的能力会受到一定限制。
- 沿着最近节点到随机点的方向继续扩展步长长度
我觉得这种方式的优点是可以较大限度地利用步长,提高了探索新区域的能力。不过因为需要进行额外的计算来确定新节点的位置,计算量会略微增加。
具体选择哪种可以依自己的情况而定。
from chhrobotics.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chhrobotics.