|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbaobab.bio.permutation.IntervalUtil
public class IntervalUtil
The IntervalUtil class contains utility methods which deal with intervals of permutations
Constructor Summary | |
---|---|
IntervalUtil()
|
Method Summary | |
---|---|
static BitList |
boundariesToList(PermutationBPGraph permutation,
int start,
int end)
Generates a BitList from an interval |
static int[] |
boundariesToSortedList(PermutationBPGraph permutation,
int start,
int end)
Generates a TraceElement from a reversal |
static int[] |
boundariesToUnsortedList(PermutationBPGraph permutation,
int start,
int end)
|
static int[] |
listToBoundaries(int[] positions,
boolean isLinear,
int[] segment)
|
static int[] |
listToBoundaries(PermutationBPGraph permutation,
BitList segment)
Generates a reversal from a trace element |
static int[] |
listToBoundaries(PermutationBPGraph permutation,
int[] segment)
|
static BitList |
unsortedToSortedList(int[] unsortedSegment,
int permutationSize)
Generates a BitList from an interval |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntervalUtil()
Method Detail |
---|
public static int[] boundariesToUnsortedList(PermutationBPGraph permutation, int start, int end)
public static int[] listToBoundaries(int[] positions, boolean isLinear, int[] segment)
public static int[] listToBoundaries(PermutationBPGraph permutation, int[] segment)
public static int[] boundariesToSortedList(PermutationBPGraph permutation, int start, int end)
permutation
- the permutationstart
- the start position of a reversalend
- the end position of a reversal
public static BitList unsortedToSortedList(int[] unsortedSegment, int permutationSize)
unsortedSegment
- the values in the intervalpermutationSize
- the size of the permutation containing the interval
public static BitList boundariesToList(PermutationBPGraph permutation, int start, int end)
permutation
- the permutationstart
- the start position of a reversalend
- the end position of a reversal
public static int[] listToBoundaries(PermutationBPGraph permutation, BitList segment)
permutation
- the given permutation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |