|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.sequential.CompactCandidateSegmentGroup
public class CompactCandidateSegmentGroup
A more space-efficient version of a CandidateSegmentGroup. Space is saved by explicitly storing the instances for the unit-length segments, plus "deltas" for each non-unit length segment. Each "delta" encodes the difference between the segment instance and the sum of the unit-length instances it covers.
Constructor Summary | |
---|---|
CompactCandidateSegmentGroup(FeatureFactory factory,
CandidateSegmentGroup group)
Creates a new holder for sliding-window instances. |
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
classNameSet()
Return the set of strings associated with ClassLabels on any of the stored segments. |
int |
getMaxWindowSize()
Return the maximum segment length. |
int |
getSequenceLength()
Return the length of the original sequence that the segments were derived from. |
java.lang.String |
getSubpopulationId()
Return the subpopulationId for the original sequence. |
Example |
getSubsequenceExample(int start,
int end)
Return the example corresponding to the segment from positions start..end |
Instance |
getSubsequenceInstance(int start,
int end)
Return the instance corresponding to the segment from positions start...end. |
ClassLabel |
getSubsequenceLabel(int start,
int end)
Return the class label associated with getSubsequenceExample(start,end). |
int |
size()
Number of instances stored. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompactCandidateSegmentGroup(FeatureFactory factory, CandidateSegmentGroup group)
Method Detail |
---|
public Example getSubsequenceExample(int start, int end)
CandidateSegmentGroup
getSubsequenceExample
in interface CandidateSegmentGroup
public ClassLabel getSubsequenceLabel(int start, int end)
getSubsequenceLabel
in interface CandidateSegmentGroup
public Instance getSubsequenceInstance(int start, int end)
getSubsequenceInstance
in interface CandidateSegmentGroup
public int getSequenceLength()
CandidateSegmentGroup
getSequenceLength
in interface CandidateSegmentGroup
public int getMaxWindowSize()
CandidateSegmentGroup
getMaxWindowSize
in interface CandidateSegmentGroup
public java.lang.String getSubpopulationId()
CandidateSegmentGroup
getSubpopulationId
in interface HasSubpopulationId
getSubpopulationId
in interface CandidateSegmentGroup
public int size()
CandidateSegmentGroup
size
in interface CandidateSegmentGroup
public java.util.Set<java.lang.String> classNameSet()
CandidateSegmentGroup
classNameSet
in interface CandidateSegmentGroup
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |