Class SelectionGenerator

java.lang.Object
edu.cmu.tetrad.util.SelectionGenerator

public final class SelectionGenerator extends Object
Generates (nonrecursively) all of the selections from a items, where a is a nonnegative integer. The values of a is given in the constructor, and the sequence of seletions is obtained by repeatedly calling the next() method. When the sequence is finished, null is returned.> 0

A valid combination for the sequence of combinations for a generated by this class is an array x[] of a integers i, 0 <= i < a.

To see what this class does, try calling SelectionGenerator.testPrint(5, 3), for instance.

Version:
$Id: $Id
Author:
josephramsey