public class AdvancedIntegerFct extends NumberFct
| Constructor and Description |
|---|
AdvancedIntegerFct(Project prj,
IntegerDesc desc,
java.lang.String name)
Initializes this with the given description.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalPoint(java.lang.Double key,
Similarity value)
Adds the specified point to the list of additional points.
|
Similarity |
calculateSimilarity(Attribute a1,
Attribute a2)
Calculates the similarity of the specified attributes
using the interpolated function.
|
Similarity |
calculateSimilarity(int q,
int c) |
void |
clone(AttributeDesc descNEW,
boolean active)
Creates a new function which is the same function
as this but with a different description, namely descNEW.
|
java.util.TreeMap<java.lang.Double,Similarity> |
getAdditionalPoints()
Returns the map of additional point used to interpolate this function
Points are pairs of a double value and a similarity
|
double |
getDiff() |
double |
getMax() |
double |
getMin() |
void |
setDistanceFct(DistanceConfig df)
Sets the mode of this function to mode
|
void |
update(java.util.Observable arg0,
java.lang.Object arg1) |
getDesc, getDistanceFct, getMultipleConfig, getName, getProject, isSymmetric, setMultipleConfig, setName, setSymmetricpublic AdvancedIntegerFct(Project prj, IntegerDesc desc, java.lang.String name)
desc - the description of the attributes to be comparedpublic Similarity calculateSimilarity(Attribute a1, Attribute a2) throws java.lang.Exception
a1 - the first valuea2 - the second valuejava.lang.Exceptionpublic Similarity calculateSimilarity(int q, int c) throws java.lang.Exception
java.lang.Exceptionpublic java.util.TreeMap<java.lang.Double,Similarity> getAdditionalPoints()
public void addAdditionalPoint(java.lang.Double key,
Similarity value)
key - Double, the distance describing the first coordinate of the new pointvalue - Similarity used as the value for the second coordinatepublic double getMin()
public double getMax()
public double getDiff()
public void setDistanceFct(DistanceConfig df)
NumberFctsetDistanceFct in class NumberFctdf - the new mode of this functionpublic void clone(AttributeDesc descNEW, boolean active)
ISimFctpublic void update(java.util.Observable arg0,
java.lang.Object arg1)