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

public class SWAImpl extends DPImpl implements SWA
  • 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).
    • getNormedSimilarityScore

      public double getNormedSimilarityScore()
      Description copied from interface: DP
      Return the normalized similarity.
      Specified by:
      getNormedSimilarityScore in interface DP
      Returns:
      The normalized similarity score.
    • 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.
    • setInsertionPenaltyScheme

      public void setInsertionPenaltyScheme(SWA.PenaltyScheme penaltyScheme)
      Description copied from interface: SWA
      Set the penalty scheme to be used when inserting into the query.
      Specified by:
      setInsertionPenaltyScheme in interface SWA
      Parameters:
      penaltyScheme - A functional interface of type PenaltyScheme. Represents a function mapping a NESTTaskNodeObject to a double.
    • setDeletionPenaltyScheme

      public void setDeletionPenaltyScheme(SWA.PenaltyScheme penaltyScheme)
      Description copied from interface: SWA
      Set the penalty scheme to be used when deleting from the query.
      Specified by:
      setDeletionPenaltyScheme in interface SWA
      Parameters:
      penaltyScheme - A functional interface of type PenaltyScheme. Represents a function mapping a NESTTaskNodeObject to a double.