The elements of G must have an addition operation meaning that if two elements $g, h \in G$, then $g+h$ must work. The usual choices for G are the list of elements of $\mathbb{Z}/2$ or $(\mathbb{Z}/2)^2$.
|
|
The elements of B are lists of the elements of G with the same parameter value.
In the following example, the first two elements of G receive distinct parameters, while the last two share a parameter. This is precisely the Kimura 2-parameter model.
|
Finally, for every ordered pair of group elements sharing a parameter, aut must provide an automorphism of the group that switches those two group elements. In aut all of the group elements are identified by their index in $G$, and an automorphism is given by a list of permuted index values.
In our example, the pairs requiring an automorphism are \{2,3\} and \{3,2\}.
|
|
The object model is a method function.