marytts.signalproc.analysis
Class AlignedLabels

java.lang.Object
  extended by marytts.signalproc.analysis.AlignedLabels

public class AlignedLabels
extends java.lang.Object

Author:
marc

Nested Class Summary
static class AlignedLabels.AlignedTimeStretch
           
 
Constructor Summary
AlignedLabels(Labels first, Labels second, int[] indexMap)
           
 
Method Summary
 java.util.List<AlignedLabels.AlignedTimeStretch> getAlignedTimeStretches()
           
 Labels getFirst()
           
 int[] getIndexMap()
           
 Labels getSecond()
           
 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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignedLabels

public AlignedLabels(Labels first,
                     Labels second,
                     int[] indexMap)
Method Detail

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()