|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPermutation
Modelize a sorting permutation of a set.
Method Summary | ||
---|---|---|
int[] |
applyPermutation(int[] source)
apply the permutation to the integer array |
|
|
applyPermutation(List<T> source,
T[] dest)
|
|
|
applyPermutation(T[] source,
T[] dest)
apply the permutation on the source array |
|
int |
getOriginalIndex(int idx)
retu |
|
int |
getPermutationIndex(int idx)
return |
|
boolean |
isIdentity()
|
Method Detail |
---|
<T> void applyPermutation(T[] source, T[] dest)
source
- the array to be permuteddest
- the permuted array<T> void applyPermutation(List<T> source, T[] dest)
int[] applyPermutation(int[] source)
int getOriginalIndex(int idx)
idx
- the permutation index
int getPermutationIndex(int idx)
idx
- the index in the original order
boolean isIdentity()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |