|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.data.sequences.Sequence<int[]>
de.jstacs.data.sequences.SimpleDiscreteSequence
de.jstacs.data.sequences.IntSequence
public class IntSequence
This class is for sequences with the alphabet symbols encoded as
ints and can therefore be used for discrete
AlphabetContainers with alphabets that use a huge number of symbols.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class de.jstacs.data.sequences.Sequence |
|---|
Sequence.CompositeSequence<T>, Sequence.RecursiveSequence<T>, Sequence.SubSequence<T> |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.data.sequences.Sequence |
|---|
alphabetCon, annotation, rc |
| Constructor Summary | |
|---|---|
IntSequence(AlphabetContainer alphabetContainer,
int... content)
Creates a new IntSequence from an array of int-
encoded alphabet symbols. |
|
IntSequence(AlphabetContainer alphabetContainer,
int[] content,
int start,
int length)
Creates a new IntSequence from a part of the array of
int- encoded alphabet symbols. |
|
IntSequence(AlphabetContainer alphabetContainer,
SequenceAnnotation[] annotation,
String sequence,
String delim)
Creates a new IntSequence from a String representation
using the delimiter delim. |
|
IntSequence(AlphabetContainer alphabetContainer,
SequenceAnnotation[] annotation,
SymbolExtractor extractor)
Creates a new IntSequence from a SymbolExtractor. |
|
IntSequence(AlphabetContainer alphabetContainer,
String sequence)
Creates a new IntSequence from a String representation
using the default delimiter. |
|
| Method Summary | |
|---|---|
int |
discreteVal(int pos)
Returns the discrete value at position pos of the
Sequence. |
protected IntSequence |
flatCloneWithoutAnnotation()
Works in analogy to Object.clone(), but does not clone the
annotation. |
int |
getLength()
Returns the length of the Sequence. |
| Methods inherited from class de.jstacs.data.sequences.SimpleDiscreteSequence |
|---|
addToRepresentation, compareTo, continuousVal, fillContainer, getEmptyContainer, getEmptyRepresentation, getStringRepresentation, hashCodeForPos, isMultiDimensional |
| Methods inherited from class de.jstacs.data.sequences.Sequence |
|---|
annotate, compareTo, complement, complement, create, create, create, equals, getAlphabetContainer, getAnnotation, getCompositeSequence, getCompositeSequence, getHammingDistance, getNumberOfSequenceAnnotationsByType, getSequenceAnnotationByType, getSequenceAnnotationByTypeAndIdentifier, getSubSequence, getSubSequence, getSubSequence, getSubSequence, hashCode, matches, reverse, reverse, reverseComplement, reverseComplement, toDiscrete, toString, toString, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IntSequence(AlphabetContainer alphabetContainer,
int... content)
throws WrongAlphabetException,
WrongSequenceTypeException
IntSequence from an array of int-
encoded alphabet symbols. This constructor is designed for the method
StatisticalModel.emitDataSet(int, int...).
alphabetContainer - the AlphabetContainer for the sequencecontent - an array containing the encoded symbols
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if alphabetContainer contains alphabets that can
not be encoded with intsStatisticalModel.emitDataSet(int, int...),
IntSequence(AlphabetContainer, int[], int, int)
public IntSequence(AlphabetContainer alphabetContainer,
int[] content,
int start,
int length)
throws WrongAlphabetException,
WrongSequenceTypeException
IntSequence from a part of the array of
int- encoded alphabet symbols.
alphabetContainer - the AlphabetContainer for the sequencecontent - an array containing the encoded symbolsstart - the start index in contentlength - the length of the part of the array
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if alphabetContainer contains alphabets that can
not be encoded with intsSimpleDiscreteSequence.SimpleDiscreteSequence(AlphabetContainer, SequenceAnnotation[])
public IntSequence(AlphabetContainer alphabetContainer,
String sequence)
throws WrongAlphabetException,
WrongSequenceTypeException
IntSequence from a String representation
using the default delimiter.
alphabetContainer - the AlphabetContainer for the sequencesequence - a String representation of the sequence
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if alphabetContainer contains alphabets that can
not be encoded with intsIntSequence(AlphabetContainer, SequenceAnnotation[],
String, String)
public IntSequence(AlphabetContainer alphabetContainer,
SequenceAnnotation[] annotation,
String sequence,
String delim)
throws WrongAlphabetException,
WrongSequenceTypeException
IntSequence from a String representation
using the delimiter delim. Annotations for this sequence are
considered by annotation.
alphabetContainer - the AlphabetContainer for the sequenceannotation - the annotation for this sequencesequence - a String representation of the sequencedelim - the delimiter, a String that separates the symbols
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if alphabetContainer contains alphabets that can
not be encoded with intsIntSequence(AlphabetContainer, SequenceAnnotation[],
SymbolExtractor)
public IntSequence(AlphabetContainer alphabetContainer,
SequenceAnnotation[] annotation,
SymbolExtractor extractor)
throws WrongAlphabetException,
WrongSequenceTypeException
IntSequence from a SymbolExtractor.
Annotations for this sequence are considered by annotation.
alphabetContainer - the AlphabetContainer for the sequenceannotation - the annotation for this sequenceextractor - the SymbolExtractor
WrongAlphabetException - if the sequence is not defined over
alphabetContainer
WrongSequenceTypeException - if alphabetContainer contains alphabets that can
not be encoded with intsSimpleDiscreteSequence.SimpleDiscreteSequence(AlphabetContainer, SequenceAnnotation[])| Method Detail |
|---|
public int discreteVal(int pos)
Sequencepos of the
Sequence.
discreteVal in class Sequence<int[]>pos - the position of the Sequence
pos of the
Sequencepublic int getLength()
SequenceSequence.
getLength in class Sequence<int[]>Sequenceprotected IntSequence flatCloneWithoutAnnotation()
SequenceObject.clone(), but does not clone the
annotation. This method is used in
Sequence.annotate(boolean, SequenceAnnotation...).
flatCloneWithoutAnnotation in class Sequence<int[]>Sequence without annotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||