Class CombinationGenerator
- java.lang.Object
-
- com.actelion.research.calc.combinatorics.CombinationGenerator
-
public class CombinationGenerator extends java.lang.Object
CombinationGeneratorCopyright: 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
-
-
Constructor Summary
Constructors Constructor Description CombinationGenerator()
-
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)
-
-
-
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)
-
-