What is the difference between alphaTarget and alphaMin?

家住魔仙堡 提交于 2019-11-29 09:31:08

Concepts like alphaMin and alphaTarget are, indeed, quite hard to understand, and on top of that they are not very well explained in the docs.

You got it almost right in your comment:

OK I figured most of it out by just logging alpha to the console: alphaMin sets the alpha-level where the simulation will stop running (tick-events stop happening), alphaTarget redefines where the alpha will eventually end up (the asymptote), so instead of slowly going to 0 it will slowly go to 0.2. Lord only knows what the purpose of the alphaTarget is. (emphasis mine)

So, the missing part for you to understand these concepts is to understand "what [is] the purpose of the alphaTarget". And that's quite simple:

As you know, alphaMin sets the minimum alpha, which will be responsible for stopping the simulation when the current alpha falls below it. So, if we set the alphaTarget to a value above the alphaMin, the simulation never stops.

For instance, have a look at this forked bl.ocks, where I set the alphaTarget to 0.8: https://bl.ocks.org/GerardoFurtado/91368069a381009d30468aa9774c0de3/e58316dfdb05b68b02e5692c26b360c990da0383

As you can see, that simulation will run forever.

Of course, even with a high alphaTarget value the simulation will stop if the alphaMin is higher, but in a quite unpleasant and abrupt way. For instance, alphaMin = 0.991 and alphaTarget = 0.99: https://blockbuilder.org/GerardoFurtado/72961f5e63eb75b6202d9e24dc25e67b

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!