de.jstacs.data.sequences
Class DiscreteSequence
java.lang.Object
de.jstacs.data.Sequence<int[]>
de.jstacs.data.sequences.DiscreteSequence
- All Implemented Interfaces:
- Comparable<Sequence<int[]>>
- Direct Known Subclasses:
- MultiDimensionalDiscreteSequence, SimpleDiscreteSequence
public abstract class DiscreteSequence
- extends Sequence<int[]>
This is the super class of discrete sequences.
- Author:
- Jens Keilwagen
Methods inherited from class de.jstacs.data.Sequence |
addToRepresentation, annotate, compareTo, complement, complement, continuousVal, create, create, create, discreteVal, equals, fillContainer, flatCloneWithoutAnnotation, getAlphabetContainer, getAnnotation, getCompositeSequence, getCompositeSequence, getEmptyContainer, getEmptyRepresentation, getHammingDistance, getLength, getNumberOfSequenceAnnotationsByType, getSequenceAnnotationByType, getSequenceAnnotationByTypeAndIdentifier, getStringRepresentation, getSubSequence, getSubSequence, getSubSequence, getSubSequence, hashCode, hashCodeForPos, isMultiDimensional, matches, reverse, reverse, reverseComplement, reverseComplement, toDiscrete, toString, toString, toString, toString |
DiscreteSequence
protected DiscreteSequence(AlphabetContainer container,
SequenceAnnotation[] annotation)
- This constructor creates a new
DiscreteSequence
with the
AlphabetContainer
container
and the annotation
annotation
but without the content. The content has to be
set by the constructor of the subclass.
- Parameters:
container
- the AlphabetContainer
of the sequenceannotation
- the annotation of the sequence- See Also:
Sequence.Sequence(AlphabetContainer, SequenceAnnotation[])
compareTo
public int compareTo(int[] t1,
int[] t2)
- Description copied from class:
Sequence
- This method compares to container and is used in
Sequence.compareTo(Sequence)
.
- Specified by:
compareTo
in class Sequence<int[]>
- Parameters:
t1
- the first containert2
- the second container
- Returns:
- zero if arguments are equal
- See Also:
Sequence.getEmptyContainer()
,
Sequence.fillContainer(Object, int)
,
Comparable.compareTo(java.lang.Object)