Package ca.phon.alignment
Interface Aligner<T>
- Record Components:
T
- the type of object being aligned
- All Known Implementing Classes:
IndelAligner
,PhoneAligner
,SyllableAligner
public interface Aligner<T>
Calculates pairwise alignment of two sequences of
objects.
-
Method Summary
Modifier and TypeMethodDescriptioncalculateAlignment
(T[] top, T[] bottom) Calculate the alignment.Returns the AlignmentMap calculated during the last call to 'calculateAlignment'.
-
Method Details
-
calculateAlignment
Calculate the alignment. Alignment calculation is determined by implementation. See global vs local alignment.- Returns:
- the alignment map
-
getAlignmentMap
AlignmentMap<T> getAlignmentMap()Returns the AlignmentMap calculated during the last call to 'calculateAlignment'. Undefined if calculateAlignment was not called.- Returns:
- alignment map
-