|
RANDOM EQUIVALENCE RELATIONName:
For example, if n = 3, then there are 5 possible partitions:
{1,2} {3} {1, 3} {2} {2, 3} {1} {1} {2} {3} The output of this command is an array of size n where the ith element identifies the class which i belongs to. For example, the following array (for n = 5)
identifies the partition
where <y> is a variable where the random equivalence relation is saved. This command must be preceeded with the command
LET Y = RANDOM EQUIVALENCE RELATION
The SEED command can be used to specify a seed for the random number generator.
LET N = 8 LET Y = RANDOM EQUIVALENCE RELATION PRINT Y
Date created: 1/12/2009 |