java.lang.Object
de.uni_trier.wi2.procake.similarity.nest.sequence.utils.impl.DPImpl
de.uni_trier.wi2.procake.similarity.nest.sequence.utils.impl.DTWImpl
All Implemented Interfaces:
DP, DTW

public class DTWImpl extends DPImpl implements DTW
  • Constructor Details

  • Method Details

    • getStepVec

      public Vector getStepVec(DataObject queryObj, DataObject caseObj)
      Description copied from interface: DP
      Vector representing DP-specific possibilities associated with each step. This function is implemented by DTW and SWA individually.
      Specified by:
      getStepVec in interface DP
      Returns:
      A vector representing each step's values. (#val diagonal step#, #val horizontal step#, #val vertical step#, 0).
    • getAlignment

      public DataObject[][] getAlignment()
      Description copied from interface: DP
      Returns the found alignment of the dp algorithm as a 2d array. return[0] und return[1] enthalten die alignments.
      Specified by:
      getAlignment in interface DP
      Returns:
      A 2d array containing the alignment.
    • getNormedSimilarityScore

      public double getNormedSimilarityScore()
      Description copied from interface: DP
      Return the normalized similarity.
      Specified by:
      getNormedSimilarityScore in interface DP
      Returns:
      The normalized similarity score.
    • setStretchSim

      public void setStretchSim(double valBelowZero)
      Description copied from interface: DTW
      Set the stretching factor to be used for local similarities.
      Specified by:
      setStretchSim in interface DTW
      Parameters:
      valBelowZero - The local sims will be mapped to the interval [-valBelowZero, 1]