Class SMListDPImpl
java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
de.uni_trier.wi2.procake.similarity.base.collection.impl.SMListDPImpl
- All Implemented Interfaces:
SMListDP
,SimilarityMeasure
- Direct Known Subclasses:
SMListDTWImpl
,SMListSWAImpl
-
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 String
Name of the data similarity measure to be used for comparing data nodes.protected boolean
Whether the alignments shall end with the query.protected double
Percentage of the query length as position, where temporal factor shall equal one half.protected SMListDP.DIFFERENT_BEGINNINGS_STRATEGIES
protected String
Name of the task similarity measure to be used.protected boolean
Whether or not to return the normalized score.protected boolean
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
LOG_ORDER_NAME_NOT_FOUND
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return property of similarity measure to find an alignment that ends with the query or not.double
Returns a bool whether different beginnings are considered in the similarity calculation or not.boolean
Returns a bool weather the local similarities should be calculated or not.void
setDataSimilarityToUse
(String name) Set the data similarity to be used during local node similarity calculation.void
setForceAlignmentEndsWithQuery
(boolean endWithQuery) Set property of similarity measures to find an alignment that ends with the query.void
setHalvingDistancePercentage
(double halvingDistancePercentage) Set the percentage of the query length, at which the temporal factor shall equal one half.void
Sets a bool whether different beginnings are considered in the similarity calculation or not.void
Set the task similarity to be used during local node similarity calculation.void
setNormScore
(boolean normScore) void
setReturnLocalSimilarities
(boolean returnLocalSimilarities) Sets a parameter weather a mapping of similarities of each query and case object should be calculated.Methods inherited from class de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
getDataClass, getName, initialize, initializeBasedOn, isAggregate, isForceOverride, isInterval, isNumeric, isObject, isReusable, isSet, isSimilarityFor, 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
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
Field Details
-
forceAlignmentEndsWithQuery
protected boolean forceAlignmentEndsWithQueryWhether the alignments shall end with the query. -
normScore
protected boolean normScoreWhether or not to return the normalized score. -
ignoreDifferentBeginnings
-
returnLocalSimilarities
protected boolean returnLocalSimilarities -
halvingDistancePercentage
protected double halvingDistancePercentagePercentage of the query length as position, where temporal factor shall equal one half. -
dataSimilarityToUse
Name of the data similarity measure to be used for comparing data nodes. -
localSimilarityToUse
Name of the task similarity measure to be used.
-
-
Constructor Details
-
SMListDPImpl
public SMListDPImpl()
-
-
Method Details
-
getHalvingDistancePercentage
public double getHalvingDistancePercentage()- Specified by:
getHalvingDistancePercentage
in interfaceSMListDP
-
setHalvingDistancePercentage
public void setHalvingDistancePercentage(double halvingDistancePercentage) Description copied from interface:SMListDP
Set the percentage of the query length, at which the temporal factor shall equal one half.- Specified by:
setHalvingDistancePercentage
in interfaceSMListDP
- Parameters:
halvingDistancePercentage
- Distance as percentage between 0 and 1.
-
getDataSimilarityToUse
- Specified by:
getDataSimilarityToUse
in interfaceSMListDP
-
setDataSimilarityToUse
Description copied from interface:SMListDP
Set the data similarity to be used during local node similarity calculation.- Specified by:
setDataSimilarityToUse
in interfaceSMListDP
- Parameters:
name
- Name of the sim measure
-
getLocalSimilarityToUse
- Specified by:
getLocalSimilarityToUse
in interfaceSMListDP
-
setLocalSimilarityToUse
Description copied from interface:SMListDP
Set the task similarity to be used during local node similarity calculation.- Specified by:
setLocalSimilarityToUse
in interfaceSMListDP
- Parameters:
name
- Name of the sim measure
-
setNormScore
public void setNormScore(boolean normScore) - Specified by:
setNormScore
in interfaceSMListDP
-
getForceAlignmentEndsWithQuery
public boolean getForceAlignmentEndsWithQuery()Description copied from interface:SMListDP
Return property of similarity measure to find an alignment that ends with the query or not.- Specified by:
getForceAlignmentEndsWithQuery
in interfaceSMListDP
- Returns:
-
setForceAlignmentEndsWithQuery
public void setForceAlignmentEndsWithQuery(boolean endWithQuery) Description copied from interface:SMListDP
Set property of similarity measures to find an alignment that ends with the query.- Specified by:
setForceAlignmentEndsWithQuery
in interfaceSMListDP
- Parameters:
endWithQuery
- Whether the alignment shall end with the query. Defaults to true.
-
setIgnoreDifferentBeginnings
Description copied from interface:SMListDP
Sets a bool whether different beginnings are considered in the similarity calculation or not.- Specified by:
setIgnoreDifferentBeginnings
in interfaceSMListDP
- Parameters:
strategy
- NONE, IGNORE_DIFFERENT_BEGINNINGS_CASE or IGNORE_DIFFERENT_BEGINNINGS_CASE_AND_QUERY- See Also:
-
getIgnoreDifferentBeginnings
Description copied from interface:SMListDP
Returns a bool whether different beginnings are considered in the similarity calculation or not.- Specified by:
getIgnoreDifferentBeginnings
in interfaceSMListDP
- Returns:
- true or false
-
setReturnLocalSimilarities
public void setReturnLocalSimilarities(boolean returnLocalSimilarities) Description copied from interface:SMListDP
Sets a parameter weather a mapping of similarities of each query and case object should be calculated.- Specified by:
setReturnLocalSimilarities
in interfaceSMListDP
- Parameters:
returnLocalSimilarities
- true or false.
-
getReturnLocalSimilarities
public boolean getReturnLocalSimilarities()Description copied from interface:SMListDP
Returns a bool weather the local similarities should be calculated or not.- Specified by:
getReturnLocalSimilarities
in interfaceSMListDP
- Returns:
- true or false
-