marytts.signalproc.adaptation.codebook
Class WeightedCodebookMapper

java.lang.Object
  extended by marytts.signalproc.adaptation.VocalTractTransformationFunction
      extended by marytts.signalproc.adaptation.codebook.WeightedCodebookMapper

public class WeightedCodebookMapper
extends VocalTractTransformationFunction

This class performs mapping of acoustic features to be transformed to the codebook entries

Author:
Oytun Türk

Field Summary
 WeightedCodebookMapperParams mapperParams
           
 WeightedCodebookLsfMatch returnedMatch
           
 
Constructor Summary
WeightedCodebookMapper(WeightedCodebookMapperParams mp)
           
 
Method Summary
static double[] getWeights(double[] bestDistances, int numBestDistances, int weightingMethod, double steepness)
           
static void main(java.lang.String[] args)
           
 int[] preselect(Context currentContext, WeightedCodebook codebook, boolean isMatchUsingTargetCodebook, int minimumCandidates)
           
 WeightedCodebookLsfMatch transform(double[] inputLsfs, WeightedCodebook codebook, boolean isVocalTractMatchUsingTargetCodebook)
           
 WeightedCodebookLsfMatch transform(double[] inputLsfs, WeightedCodebook codebook, boolean isVocalTractMatchUsingTargetCodebook, int[] preselectedIndices)
           
 WeightedCodebookLsfMatch transformOld(double[] inputLsfs, WeightedCodebook codebook, boolean isVocalTractMatchUsingTargetCodebook)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapperParams

public WeightedCodebookMapperParams mapperParams

returnedMatch

public WeightedCodebookLsfMatch returnedMatch
Constructor Detail

WeightedCodebookMapper

public WeightedCodebookMapper(WeightedCodebookMapperParams mp)
Method Detail

preselect

public int[] preselect(Context currentContext,
                       WeightedCodebook codebook,
                       boolean isMatchUsingTargetCodebook,
                       int minimumCandidates)

transform

public WeightedCodebookLsfMatch transform(double[] inputLsfs,
                                          WeightedCodebook codebook,
                                          boolean isVocalTractMatchUsingTargetCodebook,
                                          int[] preselectedIndices)

transform

public WeightedCodebookLsfMatch transform(double[] inputLsfs,
                                          WeightedCodebook codebook,
                                          boolean isVocalTractMatchUsingTargetCodebook)

transformOld

public WeightedCodebookLsfMatch transformOld(double[] inputLsfs,
                                             WeightedCodebook codebook,
                                             boolean isVocalTractMatchUsingTargetCodebook)

getWeights

public static double[] getWeights(double[] bestDistances,
                                  int numBestDistances,
                                  int weightingMethod,
                                  double steepness)

main

public static void main(java.lang.String[] args)