de.jstacs.data.sequences
Class MultiDimensionalArbitrarySequence
java.lang.Object
de.jstacs.data.sequences.Sequence<T>
de.jstacs.data.sequences.MultiDimensionalSequence<double[]>
de.jstacs.data.sequences.MultiDimensionalArbitrarySequence
- All Implemented Interfaces:
- Comparable<Sequence<double[]>>
public class MultiDimensionalArbitrarySequence
- extends MultiDimensionalSequence<double[]>
This class is for multidimensional arbitrary sequences.
- Author:
- Jens Keilwagen
| Methods inherited from class de.jstacs.data.sequences.MultiDimensionalSequence |
addToRepresentation, complement, continuousVal, discreteVal, flatCloneWithoutAnnotation, getAnnotations, getEmptyRepresentation, getLength, getNumberOfSequences, getSequence, getStringRepresentation, hashCodeForPos, isMultiDimensional, reverseComplement |
| Methods inherited from class de.jstacs.data.sequences.Sequence |
annotate, compareTo, complement, create, create, create, equals, getAlphabetContainer, getAnnotation, getCompositeSequence, getCompositeSequence, getHammingDistance, getNumberOfSequenceAnnotationsByType, getSequenceAnnotationByType, getSequenceAnnotationByTypeAndIdentifier, getSubSequence, getSubSequence, getSubSequence, getSubSequence, hashCode, matches, reverse, reverse, reverseComplement, toDiscrete, toString, toString, toString, toString |
MultiDimensionalArbitrarySequence
public MultiDimensionalArbitrarySequence(SequenceAnnotation[] seqAn,
ArbitrarySequence... sequence)
throws WrongLengthException,
WrongAlphabetException
- This constructor creates an
MultiDimensionalDiscreteSequence from a set of individual Sequences.
- Parameters:
seqAn - the annotations for the aligned sequencessequence - the individual sequences that have been aligned
- Throws:
WrongLengthException - if the sequences have different lengths
WrongAlphabetException - if the sequences have different AlphabetContainers
fillContainer
public void fillContainer(double[] container,
int pos)
- Description copied from class:
Sequence
- The method fills the content of a specific position in to the container.
This is especially of interest for multidimensional sequences.
- Specified by:
fillContainer in class Sequence<double[]>
- Parameters:
container - the container which is used for filling the content.pos - the position- See Also:
Sequence.getEmptyContainer(),
Sequence.isMultiDimensional()
getEmptyContainer
public double[] getEmptyContainer()
- Description copied from class:
Sequence
- The method returns a container that can be used for accessing the symbols for each position.
This is especially of interest for multidimensional sequences.
- Specified by:
getEmptyContainer in class Sequence<double[]>
- Returns:
- a container that can be used for accessing the symbols for each position
- See Also:
Sequence.fillContainer(Object, int),
Sequence.isMultiDimensional()
getInstance
protected MultiDimensionalArbitrarySequence getInstance(SequenceAnnotation[] seqAn,
Sequence... seqs)
throws WrongLengthException,
WrongAlphabetException
- Specified by:
getInstance in class MultiDimensionalSequence<double[]>
- Throws:
WrongLengthException
WrongAlphabetException
compareTo
public int compareTo(double[] t1,
double[] t2)
- Description copied from class:
Sequence
- This method compares to container and is used in
Sequence.compareTo(Sequence).
- Specified by:
compareTo in class Sequence<double[]>
- 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)