Percolation-Cluster
代码说明:
对周围相邻的 8 邻居求和(元胞只有两种状态,0 或 1 )。元胞也有一个单独的状态参量(所谓 记录 )记录它们之前是否有非零状态的邻居。 在 0 与 1 之间产生一个随机数 r 。 如果总和> 0 (至少一个邻居)并且 r >阈值,或者元胞从未有过一个邻居,则元胞= 1 。 如果总和> 0 则设置"记录"的标志,记录这些元胞有一个非零的邻居。 (8 adjacent neighbors on the surrounding sum (cell only two states, 0 or 1). Cell also has a separate state parameters (so-called ' records' ) record that they have non-zero state before the neighbors. Between 0 and 1 generate a random number r. If the sum of> 0 (at least one neighbor) and r> threshold, or the cell has never had a neighbor, then cell = 1. If the sum> 0 set the " record" sign, record the cell has a non-zero neighbors.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!