Interface SMListWeighted
- All Known Subinterfaces:
SMListDTWWeighted
,SMListMappingWeighted
,SMListSWAWeighted
- All Known Implementing Classes:
SMListDTWWeightedImpl
,SMListMappingWeightedImpl
,SMListSWAWeightedImpl
public interface SMListWeighted
SMListWeighted is 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
similarity values are localSimilarities which are in turn weighted with
ListWeight
s.- Author:
- Justin Weich
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addWeight
(ListWeight listWeight) Adds aListWeight
to the currentListWeight
s.double
Returns the default weight for newListWeight
s.Returns the addedListWeight
s.void
setDefaultWeight
(double defaultWeight) Sets the default weight for newListWeight
s.void
setWeights
(LinkedList<ListWeight> listWeights) Sets the addedListWeight
s.
-
Field Details
-
DEFAULT_WEIGHT
static final double DEFAULT_WEIGHTThe default weight for newListWeight
s.- See Also:
-
-
Method Details
-
getWeights
LinkedList<ListWeight> getWeights()Returns the addedListWeight
s. -
setWeights
Sets the addedListWeight
s.- Parameters:
listWeights
- a list ofListWeight
s
-
addWeight
Adds aListWeight
to the currentListWeight
s.- Parameters:
listWeight
- theListWeight
to add
-
getDefaultWeight
double getDefaultWeight()Returns the default weight for newListWeight
s. -
setDefaultWeight
void setDefaultWeight(double defaultWeight) Sets the default weight for newListWeight
s.- Parameters:
defaultWeight
-
-