Interface SMNumericLinear
-
- All Superinterfaces:
SimilarityMeasure,SMNumeric
- All Known Implementing Classes:
SMNumericLinearImpl
public interface SMNumericLinear extends SMNumeric
In most cases the similarity between two numeric values can be described by a linear function. The idea is that the similarity decreases linearly in an interval $[min,max]$ with the increase of difference between the two values. Below $min$ the similarity is maximal, and above $max$, the similarity is minimal.- Author:
- Rainer Maximini
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.similarity.base.numeric.SMNumeric
SMNumeric.ZERO_OUT_STRATEGIES
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_MINIMUMDefault value for minimum is 0.0.static StringNAMEName of similarity measure is "NumericLinear".-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
COMPONENT, COMPONENT_KEY, LOG_ORDER_NAME_NOT_FOUND
-
Fields inherited from interface de.uni_trier.wi2.procake.similarity.base.numeric.SMNumeric
DEFAULT_STRATEGY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetMaximum()doublegetMinimum()voidsetMaximum(double max)voidsetMinimum(double min)-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.SimilarityMeasure
compute, getDataClass, getName, getSystemName, isForceOverride, isReusable, setForceOverride
-
Methods inherited from interface de.uni_trier.wi2.procake.similarity.base.numeric.SMNumeric
getAsymmetricStrategy, setAsymmetricStrategy
-
-
-
-
Field Detail
-
NAME
static final String NAME
Name of similarity measure is "NumericLinear".- See Also:
- Constant Field Values
-
DEFAULT_MINIMUM
static final double DEFAULT_MINIMUM
Default value for minimum is 0.0.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaximum
double getMaximum()
-
setMaximum
void setMaximum(double max) throws InvalidAttributeValueException- Throws:
InvalidAttributeValueException
-
getMinimum
double getMinimum()
-
setMinimum
void setMinimum(double min) throws InvalidAttributeValueException- Throws:
InvalidAttributeValueException
-
-