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)
FullChirotope
Chirotope.rank()
arguments.
They do not have to be monotonic increasing.chi
in interface Chirotope
chi
in interface FullChirotope
x
- an array of Chirotope.rank()
values between 0 and Chirotope.n()
- 1.which is not as restricted.
public int rank()
Chirotope
public int n()
Chirotope
public static int sign(int... x)
x
- A list of non-negative integers