Class SMAggregateKMinimumImpl
java.lang.Object
de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
de.uni_trier.wi2.procake.similarity.base.aggregate.impl.SMAggregateImpl
de.uni_trier.wi2.procake.similarity.base.aggregate.impl.SMAggregateWeightedImpl
de.uni_trier.wi2.procake.similarity.base.aggregate.impl.SMAggregateKMinimumImpl
- All Implemented Interfaces:
SMAggregate
,SMAggregateKMinimum
,SMAggregateWeighted
,SimilarityMeasure
- Author:
- rmaximi
-
Field Summary
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.aggregate.SMAggregate
DEFAULT_IGNORE_NULL_ATTRIBUTES_IN_QUERY, LOG_ATTRIBUTE_NAME_NOT_FOUND, LOG_ATTRIBUTE_NOT_FOUND, PROPERTY_USER_WEIGHT
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.aggregate.SMAggregateKMinimum
DEFAULT_K, NAME
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.aggregate.SMAggregateWeighted
DEFAULT_WEIGHT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncompute
(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) int
getK()
The system name can be used to distinguish the similarity measures.protected void
Initialize measure based on existing instancevoid
setK
(int k) To use the k-Maximum Aggregation it is necessary to set the k value.Methods inherited from class de.uni_trier.wi2.procake.similarity.base.aggregate.impl.SMAggregateWeightedImpl
getAttributeWeights, getDefaultWeight, getUserSimWeightsNormalized, getWeight, isEveryUserSimWeightZero, setDefaultWeight, setWeight, validateQueryNotEmpty
Methods inherited from class de.uni_trier.wi2.procake.similarity.base.aggregate.impl.SMAggregateImpl
computeAttributeSimilarity, getSimilaritiesToUse, getSimilaritiesToUse, getSimilarityToUse, isIgnoreNullAttributesInQuery, isSimilarityFor, setIgnoreNullAttributesInQuery, setSimilarityToUse
Methods inherited from class de.uni_trier.wi2.procake.similarity.impl.SimilarityMeasureImpl
getDataClass, getName, initialize, 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.aggregate.SMAggregate
getSimilaritiesToUse, getSimilaritiesToUse, getSimilarityToUse, isIgnoreNullAttributesInQuery, setIgnoreNullAttributesInQuery, setSimilarityToUse
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.aggregate.SMAggregateWeighted
getAttributeWeights, getDefaultWeight, getWeight, setDefaultWeight, setWeight
-
Constructor Details
-
SMAggregateKMinimumImpl
public SMAggregateKMinimumImpl()
-
-
Method Details
-
compute
public Similarity compute(DataObject queryObject, DataObject caseObject, SimilarityValuator valuator) - Specified by:
compute
in interfaceSimilarityMeasure
- Returns:
-
getK
public int getK()- Specified by:
getK
in interfaceSMAggregateKMinimum
-
setK
public void setK(int k) Description copied from interface:SMAggregateKMinimum
To use the k-Maximum Aggregation it is necessary to set the k value. k- Specified by:
setK
in interfaceSMAggregateKMinimum
-
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.
-
initializeBasedOn
Description copied from class:SimilarityMeasureImpl
Initialize measure based on existing instance- Overrides:
initializeBasedOn
in classSMAggregateWeightedImpl
- Parameters:
base
- similarity measure to base on
-