next up previous
Next: 13.5.4 Majority + end Up: 13.5 Rule mix options. Previous: 13.5.2 By hand.

13.5.3 Majority.

If ``m'' is selected, in #13.5.1, the ``majority`` rule will be set for each cell according the its neighbourhood size. The majority rule outputs 1 for a majority of 1s in the neighbourhood, 0 for a majority of 0s. In the case of even size neighbourhoods, and a tie between 1s and 0s, the output is set according to the value of the central neighbourhood index (see #9.2).