|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.data.Sequence
de.jstacs.data.sequences.RecursiveSequence
public abstract class RecursiveSequence
This is the main class for subsequences, composite sequences, ... . All these
sequences are defined on an existing Sequence
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.jstacs.data.Sequence |
---|
Sequence.CompositeSequence, Sequence.SubSequence |
Field Summary | |
---|---|
protected Sequence |
content
The internal sequence. |
Fields inherited from class de.jstacs.data.Sequence |
---|
alphabetCon, annotation, rc |
Constructor Summary | |
---|---|
RecursiveSequence(AlphabetContainer alphabet,
Sequence seq)
Creates a new RecursiveSequence on the Sequence
seq with the AlphabetContainer alphabet
using the annotation of the given Sequence . |
|
RecursiveSequence(AlphabetContainer alphabet,
SequenceAnnotation[] annotation,
Sequence seq)
Creates a new RecursiveSequence on the Sequence
seq with the AlphabetContainer alphabet
and the annotation annotation . |
Method Summary | |
---|---|
double |
continuousVal(int pos)
Returns the continuous value at position pos of the
Sequence.CompositeSequence . |
int |
discreteVal(int pos)
Returns the discrete value at position pos of the
Sequence.CompositeSequence . |
protected abstract int |
getIndex(int pos)
Returns the index in the internal sequence. |
Methods inherited from class de.jstacs.data.Sequence |
---|
annotate, compareTo, complement, complement, create, create, create, equals, flatCloneWithoutAnnotation, getAlphabetContainer, getAnnotation, getCompositeSequence, getCompositeSequence, getLength, getSubSequence, getSubSequence, getSubSequence, getSubSequence, hashCode, reverse, reverse, reverseComplement, reverseComplement, toDiscrete, toString, toString, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Sequence content
Constructor Detail |
---|
public RecursiveSequence(AlphabetContainer alphabet, SequenceAnnotation[] annotation, Sequence seq)
RecursiveSequence
on the Sequence
seq
with the AlphabetContainer
alphabet
and the annotation annotation
.
alphabet
- the AlphabetContainer
annotation
- the annotation of the RecursiveSequence
seq
- the sequenceSequence.Sequence(AlphabetContainer, SequenceAnnotation[])
public RecursiveSequence(AlphabetContainer alphabet, Sequence seq)
RecursiveSequence
on the Sequence
seq
with the AlphabetContainer
alphabet
using the annotation of the given Sequence
.
alphabet
- the AlphabetContainer
seq
- the sequenceMethod Detail |
---|
public double continuousVal(int pos)
Sequence
pos
of the
Sequence.CompositeSequence
.
continuousVal
in class Sequence
pos
- the position of the Sequence.CompositeSequence
pos
of the
Sequence.CompositeSequence
public int discreteVal(int pos)
Sequence
pos
of the
Sequence.CompositeSequence
.
discreteVal
in class Sequence
pos
- the position of the Sequence.CompositeSequence
pos
of the
Sequence.CompositeSequence
protected abstract int getIndex(int pos)
pos
- the index in the external sequence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |