Class SMListDTWWeightedImpl
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
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDTWWeightedImpl
- All Implemented Interfaces:
SMListDP
,SMListDTW
,SMListDTWWeighted
,SMListWeighted
,SimilarityMeasure
Implementation of
SMListDTWWeighted
.- Author:
- Justin Weich
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListDP
SMListDP.DIFFERENT_BEGINNINGS_STRATEGIES
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDTWImpl
currentCalcInstance, valBelowZero
Fields 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
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListDTWWeighted
NAME
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListWeighted
DEFAULT_WEIGHT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWeight
(ListWeight listWeight) Adds aListWeight
to the currentListWeight
s.compute
(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) double
Returns the default weight for newListWeight
s.The system name can be used to distinguish the similarity measures.Returns the addedListWeight
s.void
setDefaultWeight
(double defaultWeight) Sets the default weight for newListWeight
s.void
setWeights
(LinkedList<ListWeight> listWeights) Sets the addedListWeight
s.Methods inherited from class de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDTWImpl
computeDTWSim, getCalcInstance, getValBelowZero, isSimilarityFor, setValBelowZero
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
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.collection.SMListDTW
getCalcInstance, getValBelowZero, setValBelowZero
-
Constructor Details
-
SMListDTWWeightedImpl
public SMListDTWWeightedImpl()
-
-
Method Details
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) - Specified by:
compute
in interfaceSimilarityMeasure
- Overrides:
compute
in classSMListDTWImpl
- Returns:
-
getWeights
Description copied from interface:SMListWeighted
Returns the addedListWeight
s.- Specified by:
getWeights
in interfaceSMListWeighted
-
setWeights
Description copied from interface:SMListWeighted
Sets the addedListWeight
s.- Specified by:
setWeights
in interfaceSMListWeighted
- Parameters:
listWeights
- a list ofListWeight
s
-
addWeight
Description copied from interface:SMListWeighted
Adds aListWeight
to the currentListWeight
s.- Specified by:
addWeight
in interfaceSMListWeighted
- Parameters:
listWeight
- theListWeight
to add
-
getDefaultWeight
public double getDefaultWeight()Description copied from interface:SMListWeighted
Returns the default weight for newListWeight
s.- Specified by:
getDefaultWeight
in interfaceSMListWeighted
-
setDefaultWeight
public void setDefaultWeight(double defaultWeight) Description copied from interface:SMListWeighted
Sets the default weight for newListWeight
s.- Specified by:
setDefaultWeight
in interfaceSMListWeighted
-
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
- Overrides:
getSystemName
in classSMListDTWImpl
- Returns:
- The system name of the similarity measure. This is equal to SimilarityMeasure.NAME.
-