|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
de.dfki.mycbr.core.similarity.NumberFct
public abstract class NumberFct
Defines how to compute the similarity of two integers, floats or doubles. The similarity of two numbers is influenced by the range of possible values and their distance.
| Constructor Summary | |
|---|---|
NumberFct(Project p,
SimpleAttDesc d,
java.lang.String n)
|
|
| Method Summary | |
|---|---|
AttributeDesc |
getDesc()
Returns the description of the attributes which can be compared using this function |
DistanceConfig |
getDistanceFct()
Returns the mode of this function |
MultipleConfig |
getMultipleConfig()
|
java.lang.String |
getName()
Returns the name of this function |
Project |
getProject()
|
boolean |
isSymmetric()
Specifies whether this function is symmetric or asymmetric |
void |
setDistanceFct(DistanceConfig df)
Sets the mode of this function to mode |
void |
setMultipleConfig(MultipleConfig mc)
|
void |
setName(java.lang.String name)
Sets the name of this function to name |
void |
setSymmetric(boolean symmetric)
Specifies whether this function is symmetric or not. |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.dfki.mycbr.core.similarity.ISimFct |
|---|
calculateSimilarity, clone |
| Methods inherited from interface java.util.Observer |
|---|
update |
| Constructor Detail |
|---|
public NumberFct(Project p,
SimpleAttDesc d,
java.lang.String n)
| Method Detail |
|---|
public MultipleConfig getMultipleConfig()
getMultipleConfig in interface ISimFctpublic java.lang.String getName()
ISimFct
getName in interface ISimFctpublic Project getProject()
getProject in interface ISimFctpublic boolean isSymmetric()
ISimFct
isSymmetric in interface ISimFctpublic void setMultipleConfig(MultipleConfig mc)
setMultipleConfig in interface ISimFctpublic void setName(java.lang.String name)
ISimFct
setName in interface ISimFctname - the new name of this functionpublic void setSymmetric(boolean symmetric)
ISimFctsim is symmetric, sim(q,c) = sim(c,q)
should hold for all queries q and cases c this function is defined on.
Else the function is asymmetric.
setSymmetric in interface ISimFctsymmetric - specifies whether this function is symmetric or not.public void setDistanceFct(DistanceConfig df)
df - the new mode of this functionpublic DistanceConfig getDistanceFct()
public AttributeDesc getDesc()
ISimFct
getDesc in interface ISimFct
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||