Learn R Programming

CellularAutomaton (version 1.1-1)

getRuleNumber: Elementary Rule of a One-Dimensional Cellular Automaton

Description

This method extracts the rule number from an instance of class CellularAutomaton.

Arguments

Value

getRuleNumber returns the rule number for the automaton, provided that an elementary rule was specified by the user. If the user supplied his/her own rule, then this method returns -1.

Details

ca$getRuleNumber()