|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.io.IntervalInputSequence
public class IntervalInputSequence
an input sequence made up of intervals of constant valued features. Each position is represented
by an IntervalInputSequence.IntervalPosition object.
| Nested Class Summary | |
|---|---|
class |
IntervalInputSequence.IntervalPosition
provides interval based queries for a particular position in the input sequence for an IntervalInputSequence. |
static class |
IntervalInputSequence.IntervalRangeMapValue
|
| Constructor Summary | |
|---|---|
IntervalInputSequence(RangeMap rmplus,
RangeMap rmminus,
java.lang.String inputName,
int inputLength)
constructs an input sequence from the necessary data |
|
| Method Summary | |
|---|---|
InputSequence |
getComponent(java.lang.String name)
For input sequences that are a composite of several different input objects, returns a particular component of the input. |
IntervalInputSequence.IntervalPosition |
getX(int ix)
retrieves the input value at a position in the input sequence. |
int |
length()
Returns the length of this sequence |
java.util.Collection<java.lang.String> |
listComponents()
For input sequences that are a composite of several different input objects, returns a list of the names of the components in this input sequence. |
IntervalInputSequence |
subSequence(int start,
int end)
tTakes a subinterval of the input sequence with given start-end coordinates which are relative coordinates, 1-based, and inclusive. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntervalInputSequence(RangeMap rmplus,
RangeMap rmminus,
java.lang.String inputName,
int inputLength)
rmplus - range map of values on the positive strandrmminus - range map of values on the negative strandinputName - name of the input sequenceinputLength - length of the input sequence. Requires since the intervals may not cover the whole sequence.| Method Detail |
|---|
public IntervalInputSequence.IntervalPosition getX(int ix)
InputSequence
getX in interface InputSequence<IntervalInputSequence.IntervalPosition>ix - the index position at which to get the input. This is a zero-based index.
public int length()
InputSequence
length in interface InputSequence<IntervalInputSequence.IntervalPosition>
public IntervalInputSequence subSequence(int start,
int end)
InputSequence
An implementation that does not support subsetting should throw an UnsupportedOperationException
subSequence in interface InputSequence<IntervalInputSequence.IntervalPosition>start - the 1-based index of the first position of the input to retrieve.end - the 1-based index of the last position of the input to retrieve.
public InputSequence getComponent(java.lang.String name)
InputSequenceUnsupportedOperationException.
getComponent in interface InputSequence<IntervalInputSequence.IntervalPosition>name - the name of the input component to return
public java.util.Collection<java.lang.String> listComponents()
InputSequence
listComponents in interface InputSequence<IntervalInputSequence.IntervalPosition>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||