de.dfki.mycbr.core.similarity.config
Class MultipleConfig
java.lang.Object
de.dfki.mycbr.core.similarity.config.MultipleConfig
public final class MultipleConfig
- extends java.lang.Object
Configuration on how to compute similarity of multiple values.
Such a configuration consists of three parts: MainType, Reuse, and
Type.
- Author:
- myCBR Team
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CONFIG
public static final MultipleConfig DEFAULT_CONFIG
MultipleConfig
public MultipleConfig(MultipleConfig.MainType mtc,
MultipleConfig.Reuse rc,
MultipleConfig.Type tc)
- Parameters:
mtc - the main type configrc - the reuse configtc - the type config
setMainType
public void setMainType(MultipleConfig.MainType mtc)
- Parameters:
mtc - the new main type config
setReuse
public void setReuse(MultipleConfig.Reuse rc)
- Parameters:
rc - the new reuse type
setType
public void setType(MultipleConfig.Type tc)
- Parameters:
tc - the new type config
getMainType
public MultipleConfig.MainType getMainType()
- Returns:
- the main type
getReuse
public MultipleConfig.Reuse getReuse()
- Returns:
- the reuse config
getType
public MultipleConfig.Type getType()
- Returns:
- the type config
calculateSimilarity
public Similarity calculateSimilarity(ISimFct innerFunction,
MultipleAttribute<?> value1,
MultipleAttribute<?> value2)
throws java.lang.Exception
- Parameters:
innerFunction - the inner fct for comparing single attributesvalue1 - the query's multiple value to be comparedvalue2 - the case's multiple value
- Returns:
- similarity of value1 and value2
- Throws:
java.lang.Exception - if something goes wrong during similarity computations
calculateSimilarity
public Similarity calculateSimilarity(AmalgamationFct innerFct,
MultipleAttribute<?> value1,
MultipleAttribute<?> value2)
throws java.lang.Exception
- Parameters:
innerFct - the similarity function to compare single valuesvalue1 - the query's valuevalue2 - the case's value
- Returns:
- similarity of value1 and value2
- Throws:
java.lang.Exception - if something goes wrong during similarity calculations