Interface SMNumericSigmoid
- All Superinterfaces:
SimilarityMeasure
,SMNumeric
- All Known Implementing Classes:
SMNumericSigmoidImpl
We can also use sigmoid functions as a generalization of threshold functions. The parameter
$\theta \geq 0$ specifies the difference value at which the similarity has a value of $0.5$. The
parameter $\alpha>0$ specifies the steepness of the similarity decrease: the smaller $\alpha$
the steeper is the decrease.
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.similarity.base.numeric.SMNumeric
SMNumeric.ZERO_OUT_STRATEGIES
-
Field Summary
Modifier and TypeFieldDescriptionstatic final double
The default alpha value is 1.0.static final double
The default theta value is 1.0.static final String
Name of similarity measure is "NumericSigmoid".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.numeric.SMNumeric
DEFAULT_STRATEGY
-
Method Summary
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 Details
-
NAME
Name of similarity measure is "NumericSigmoid".- See Also:
-
DEFAULT_ALPHA
static final double DEFAULT_ALPHAThe default alpha value is 1.0.- See Also:
-
DEFAULT_THETA
static final double DEFAULT_THETAThe default theta value is 1.0.- See Also:
-
-
Method Details
-
getAlpha
double getAlpha() -
setAlpha
void setAlpha(double alpha) Alpha is necessary for sigmoid function. Alpha should be very small, e.g., 0.1 or 0.01.- Parameters:
alpha
- must be greater zero
-
getTheta
double getTheta() -
setTheta
void setTheta(double theta) Theta is necessary for the sigmoid function. Theta must be between 0 an 1.- Parameters:
theta
- must be greater zero
-