Class SWAImpl
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.similarity.nest.sequence.utils.SWA
SWA.PenaltyScheme
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.similarity.nest.sequence.utils.impl.DPImpl
algorithmFinished, alignmentPath, caseObjects, dataCollectionMeasure, dataSimilarityToUse, halvingDistancePercentage, ignoreDifferentBeginnings, inputDataSimWeight, localSimilarityToUse, matrixIsConstructed, outputDataSimWeight, queryObjects, scoringMatrix, similarityValue, simValuator, startAlignmentInLastRow, taskSimWeight
Fields inherited from interface de.uni_trier.wi2.procake.similarity.nest.sequence.utils.SWA
DEFAULT_PENALTY_SCHEME
-
Constructor Summary
ConstructorDescriptionSWAImpl
(DataObject[] queryObjects) SWAImpl
(DataObject[] queryObjects, DataObject[] caseObjects, SMListDP.DIFFERENT_BEGINNINGS_STRATEGIES ignoreDifferentBeginnings, String localSimilarityToUse) -
Method Summary
Modifier and TypeMethodDescriptionDataObject[][]
Returns the found alignment of the dp algorithm as a 2d array.double
Return the normalized similarity.getStepVec
(DataObject queryObj, DataObject caseObj) Vector representing DP-specific possibilities associated with each step.void
setDeletionPenaltyScheme
(SWA.PenaltyScheme penaltyScheme) Set the penalty scheme to be used when deleting from the query.void
setInsertionPenaltyScheme
(SWA.PenaltyScheme penaltyScheme) Set the penalty scheme to be used when inserting into the query.Methods inherited from class de.uni_trier.wi2.procake.similarity.nest.sequence.utils.impl.DPImpl
computeSimilarity, computeSimilarity, computeSimilarity, getAssignments, getLocalNodeSim, getRawSimilarityScore, getRecommendation, initialize, isTwoByTwoMatrix, removeCase, setBindToLastRow, setCase, setCase, setDataSimilarityToUse, setHalvingDistancePercentage, setLocalSimilarityToUse, setLocalSimWeights, setSimilarityValuator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.similarity.nest.sequence.utils.DP
computeSimilarity, computeSimilarity, computeSimilarity, getAssignments, getRawSimilarityScore, getRecommendation, removeCase, setBindToLastRow, setCase, setCase, setDataSimilarityToUse, setHalvingDistancePercentage, setLocalSimilarityToUse, setLocalSimWeights, setSimilarityValuator
-
Constructor Details
-
SWAImpl
public SWAImpl(DataObject[] queryObjects, DataObject[] caseObjects, SMListDP.DIFFERENT_BEGINNINGS_STRATEGIES ignoreDifferentBeginnings, String localSimilarityToUse) -
SWAImpl
-
-
Method Details
-
getStepVec
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 interfaceDP
- 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 interfaceDP
- Returns:
- The normalized similarity score.
-
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 interfaceDP
- Returns:
- A 2d array containing the alignment.
-
setInsertionPenaltyScheme
Description copied from interface:SWA
Set the penalty scheme to be used when inserting into the query.- Specified by:
setInsertionPenaltyScheme
in interfaceSWA
- Parameters:
penaltyScheme
- A functional interface of type PenaltyScheme. Represents a function mapping a NESTTaskNodeObject to a double.
-
setDeletionPenaltyScheme
Description copied from interface:SWA
Set the penalty scheme to be used when deleting from the query.- Specified by:
setDeletionPenaltyScheme
in interfaceSWA
- Parameters:
penaltyScheme
- A functional interface of type PenaltyScheme. Represents a function mapping a NESTTaskNodeObject to a double.
-