|
MorphAL 0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.ign.cogit.alpage.morphal.algorithm.maths.Combinatorics
public class Combinatorics
Combinatorics: maths class. Based mainly on the computation of sets of combinations without repetition.
Constructor Summary | |
---|---|
Combinatorics()
|
Method Summary | |
---|---|
static java.util.List<java.util.List<java.lang.Integer>> |
combination(int n)
Compute and return the list of the lists of the set of all possible combinations without repetition for the numbers between 0 and n-1. |
static double |
combination(int n,
int k)
Combination without repetition C(n,k). |
static java.util.List<java.util.List<java.lang.Integer>> |
combinationString(int n)
(Based on String) Compute and return the list of the lists of the set of all possible combinations without repetition for the numbers between 0 and n-1. |
static double |
factorial(int n)
Factorial. |
static void |
main(java.lang.String[] args)
Example through a main method. |
static void |
showCombination(java.util.List<java.util.List<java.lang.Integer>> combination)
Show a combination. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Combinatorics()
Method Detail |
---|
public static double factorial(int n)
n
- an integer
public static double combination(int n, int k)
n
- an integerk
-
public static java.util.List<java.util.List<java.lang.Integer>> combination(int n)
n
-
public static void showCombination(java.util.List<java.util.List<java.lang.Integer>> combination)
combination
- public static java.util.List<java.util.List<java.lang.Integer>> combinationString(int n)
n
-
public static void main(java.lang.String[] args)
args
-
|
MorphAL 0.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |