marytts.signalproc.analysis
Class AlignedLabels
java.lang.Object
marytts.signalproc.analysis.AlignedLabels
public class AlignedLabels
- extends java.lang.Object
- Author:
- marc
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlignedLabels
public AlignedLabels(Labels first,
Labels second,
int[] indexMap)
getFirst
public Labels getFirst()
getSecond
public Labels getSecond()
getIndexMap
public int[] getIndexMap()
mapTimeFromFirstToSecond
public double mapTimeFromFirstToSecond(double time1)
- Given the label sequences and their alignment, map a time in the first sequence to
the corresponding time in the second sequence.
- Parameters:
time1 -
- Returns:
- the corresponding time, or a negative value if no corresponding time could be determined
mapTimeFromSecondToFirst
public double mapTimeFromSecondToFirst(double time2)
- Given the label sequences and their alignment, map a time in the second sequence to
the corresponding time in the first sequence.
- Parameters:
time2 -
- Returns:
- the corresponding time, or a negative value if no corresponding time could be determined
getAlignedTimeStretches
public java.util.List<AlignedLabels.AlignedTimeStretch> getAlignedTimeStretches()