public List < Integer > getFirstRepeats ( int level ) { List < Integer > firstRepeats = new ArrayList < Integer > ( ) ; int m = getNumRepeats ( level + 1 ) ; //size of the level int d = axes . get ( level ) . getOrder ( ) ; //degree of this level int n = m * d ; // number of repeats included in each axis for ( int firstRepeat = 0 ; firstRepeat < getNumRepeats ( ) ; firstRepeat += n ) firstRepeats . ( firstRepeat ) ; return firstRepeats ; }
Get the first repeat index of each axis of a specified level .