public class Alternating extends Object implements FullChirotope
| Constructor and Description |
|---|
Alternating(Chirotope base)
We pass in a map that is not necessarily alternating,
and we get back one that is.
|
| Modifier and Type | Method and Description |
|---|---|
int |
chi(int... x)
The alternating map.
|
int |
n()
The number of elements on which this Chirotope is defined
|
int |
rank()
Must be a positive integer, which is constant for each object
implementing this interface.
|
static int |
sign(int... x)
What is the sign of the permutation that sorts the values in x.
|
public Alternating(Chirotope base)
base - public int chi(int... x)
FullChirotopeChirotope.rank() arguments.
They do not have to be monotonic increasing.chi in interface Chirotopechi in interface FullChirotopex - an array of Chirotope.rank() values between 0 and Chirotope.n() - 1.which is not as restricted.public int rank()
Chirotopepublic int n()
Chirotopepublic static int sign(int... x)
x - A list of non-negative integers