Class SMListDTWImpl
java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDPImpl
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDTWImpl
- All Implemented Interfaces:
SMListDP
,SMListDTW
,SimilarityMeasure
- Direct Known Subclasses:
SMGraphDTWImpl
,SMListDTWWeightedImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListDP
SMListDP.DIFFERENT_BEGINNINGS_STRATEGIES
-
Field Summary
Modifier and TypeFieldDescriptionprotected DTW
Instance used for the current/last calculationprotected double
valBelowZero will influence local similarity in the following way: (1+valBelowZero) * sim - valBelowZeroFields inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDPImpl
dataSimilarityToUse, forceAlignmentEndsWithQuery, halvingDistancePercentage, ignoreDifferentBeginnings, localSimilarityToUse, normScore, returnLocalSimilarities
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
LOG_ORDER_NAME_NOT_FOUND
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) protected SimilarityImpl
computeDTWSim
(DataObject originalQueryObj, DataObject originalCaseObj, DTW dtwCalculation, SimilarityValuator valuator) The system name can be used to distinguish the similarity measures.double
boolean
isSimilarityFor
(DataClass dataclass, String orderName) void
setValBelowZero
(double val) Set the stretching factor to 1 + val.Methods inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDPImpl
getDataSimilarityToUse, getForceAlignmentEndsWithQuery, getHalvingDistancePercentage, getIgnoreDifferentBeginnings, getLocalSimilarityToUse, getReturnLocalSimilarities, setDataSimilarityToUse, setForceAlignmentEndsWithQuery, setHalvingDistancePercentage, setIgnoreDifferentBeginnings, setLocalSimilarityToUse, setNormScore, setReturnLocalSimilarities
Methods inherited from class de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
getDataClass, getName, initialize, initializeBasedOn, isAggregate, isForceOverride, isInterval, isNumeric, isObject, isReusable, isSet, isTable, isTaxonomy, isText, setDataClass, setForceOverride, setName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
getDataClass, getName, isForceOverride, isReusable, setForceOverride
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListDP
getDataSimilarityToUse, getForceAlignmentEndsWithQuery, getHalvingDistancePercentage, getIgnoreDifferentBeginnings, getLocalSimilarityToUse, getReturnLocalSimilarities, setDataSimilarityToUse, setForceAlignmentEndsWithQuery, setHalvingDistancePercentage, setIgnoreDifferentBeginnings, setLocalSimilarityToUse, setNormScore, setReturnLocalSimilarities
-
Field Details
-
valBelowZero
protected double valBelowZerovalBelowZero will influence local similarity in the following way: (1+valBelowZero) * sim - valBelowZero -
currentCalcInstance
Instance used for the current/last calculation
-
-
Constructor Details
-
SMListDTWImpl
public SMListDTWImpl()
-
-
Method Details
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) - Specified by:
compute
in interfaceSimilarityMeasure
- Returns:
-
computeDTWSim
protected SimilarityImpl computeDTWSim(DataObject originalQueryObj, DataObject originalCaseObj, DTW dtwCalculation, SimilarityValuator valuator) -
isSimilarityFor
- Specified by:
isSimilarityFor
in classSimilarityMeasureImpl
-
getSystemName
Description copied from interface:SimilarityMeasure
The system name can be used to distinguish the similarity measures. Each similarity measure that can be instantiated contains a static final field called NAME representing the system name, e.g.,SMAggregateEuclidian.NAME
The system name must also be given during initialization, see
SimilarityModel.createSimilarityMeasure(String, DataClass)
.- Specified by:
getSystemName
in interfaceSimilarityMeasure
- Returns:
- The system name of the similarity measure. This is equal to SimilarityMeasure.NAME.
-
getValBelowZero
public double getValBelowZero()- Specified by:
getValBelowZero
in interfaceSMListDTW
-
setValBelowZero
public void setValBelowZero(double val) Description copied from interface:SMListDTW
Set the stretching factor to 1 + val.- Specified by:
setValBelowZero
in interfaceSMListDTW
-
getCalcInstance
- Specified by:
getCalcInstance
in interfaceSMListDTW
-