Class CombinationGenerator


  • public class CombinationGenerator
    extends java.lang.Object
    CombinationGenerator

    Copyright: Actelion Ltd., Inc. All Rights Reserved This software is the proprietary information of Actelion Pharmaceuticals, Ltd. Use is subject to license terms.

    Version:
    1.0 Oct 12, 2012 MvK: Start implementation
    Author:
    Modest von Korff
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<int[]> getAllOutOf​(int nObjects, int sampleSize)
      Get all possible index combinations, order independent.
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CombinationGenerator

        public CombinationGenerator()
    • Method Detail

      • getAllOutOf

        public static java.util.List<int[]> getAllOutOf​(int nObjects,
                                                        int sampleSize)
        Get all possible index combinations, order independent. For a list containing the numbers from 0 to nObjects for arrays of the size 'sampleSize'.
        Parameters:
        nObjects - so many indices will be permuted.
        sampleSize - Size of the array containing the permutations.
        Returns:
      • main

        public static void main​(java.lang.String[] args)