diffuse4 variable percentage
Makes each patch give 1/4 of percentage of variable
to each non-diagonal (N,E,S,W) neighboring patch.
Percentage should be expressed as a number between 0 and 1.
Variable
should be a patch variable.
Note:
diffuse4 must be run by the observer, even though it affects patches.
Examples:
diffuse food 20 causes each patch to give 1/4 of 20 percent
of the variable food to each of its four directly-neighboring patches.
Related commands:
diffuse nsum nsum4
|