Interface ListWeight
- All Known Implementing Classes:
ListWeightImpl
public interface ListWeight
ListWeights are used to perform a weighted similarity calculation. The reason for this is that
low similarity values can be penalized more and high similarity values are less important. The
ListWeights specify the interval in which they take effect and the value with which the
similarities are to be evaluated.
- Author:
- Justin Weich
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Represents the value if the lower bound is included or not.static final boolean
Represents the value if the upper bound is included or not. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of the lower bound.boolean
Returns the value if the lower bound is included or not.double
Returns the value of the upper bound.boolean
Returns the value if the upper bound is included or not.double
Returns the weight value of theListWeight
.boolean
hasSameValueAsIn
(ListWeight listWeight) void
setLowerBound
(double lowerBound) Sets the value for the lower bound.void
setLowerBoundInclusive
(boolean lowerBoundInclusive) Sets the value if the lower bound should be included or not.void
setUpperBound
(double upperBound) Sets the value of the upper bound.void
setUpperBoundInclusive
(boolean upperBoundInclusive) Sets the value if the upper bound should be included or not.void
setWeight
(double weight) Sets the weight value for theListWeight
.
-
Field Details
-
DEFAULT_LOWER_BOUND_INCLUSIVE
static final boolean DEFAULT_LOWER_BOUND_INCLUSIVERepresents the value if the lower bound is included or not.- See Also:
-
DEFAULT_UPPER_BOUND_INCLUSIVE
static final boolean DEFAULT_UPPER_BOUND_INCLUSIVERepresents the value if the upper bound is included or not.- See Also:
-
-
Method Details
-
setWeight
void setWeight(double weight) Sets the weight value for theListWeight
.- Parameters:
weight
-
-
getWeight
double getWeight()Returns the weight value of theListWeight
. -
setLowerBound
void setLowerBound(double lowerBound) Sets the value for the lower bound.- Parameters:
lowerBound
-
-
getLowerBound
double getLowerBound()Returns the value of the lower bound. -
setUpperBound
void setUpperBound(double upperBound) Sets the value of the upper bound.- Parameters:
upperBound
-
-
getUpperBound
double getUpperBound()Returns the value of the upper bound. -
getLowerBoundInclusive
boolean getLowerBoundInclusive()Returns the value if the lower bound is included or not. -
setLowerBoundInclusive
void setLowerBoundInclusive(boolean lowerBoundInclusive) Sets the value if the lower bound should be included or not.- Parameters:
lowerBoundInclusive
-
-
getUpperBoundInclusive
boolean getUpperBoundInclusive()Returns the value if the upper bound is included or not. -
setUpperBoundInclusive
void setUpperBoundInclusive(boolean upperBoundInclusive) Sets the value if the upper bound should be included or not.- Parameters:
upperBoundInclusive
-
-
hasSameValueAsIn
-