public class SameAdditionalInfoStructureElementSimilarity extends Object implements StructureElementSimilarityI
baseSimilarity
Constructor and Description |
---|
SameAdditionalInfoStructureElementSimilarity() |
SameAdditionalInfoStructureElementSimilarity(List<String> additionalInfos,
StructureElementSimilarityI baseSimilarity) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAdditionalInfos()
Returns the list of additionalInfos two structure elements must
both have or not have in order to have a non zero similarity
|
StructureElementSimilarityI |
getBaseSimilarity()
Returns the base similarity applied when two structure elements have
the same additional infos
|
void |
setAdditionalInfos(List<String> additionalInfos)
Sets the list of additionalInfos two structure elements must
both have or not have in order to have a non zero similarity
|
void |
setBaseSimilarity(StructureElementSimilarityI baseSimilarity)
Sets the base similarity applied when two structure elements have
the same additional infos
|
float |
sim(StructureElement sx,
StructureElement sd)
This function measure the similarity between structure elements
|
public SameAdditionalInfoStructureElementSimilarity()
public SameAdditionalInfoStructureElementSimilarity(List<String> additionalInfos, StructureElementSimilarityI baseSimilarity)
public List<String> getAdditionalInfos()
public void setAdditionalInfos(List<String> additionalInfos)
additionalInfos
- the additionalInfos to setpublic StructureElementSimilarityI getBaseSimilarity()
public void setBaseSimilarity(StructureElementSimilarityI baseSimilarity)
baseSimilarity
- the baseSimilarity to setpublic float sim(StructureElement sx, StructureElement sd)
StructureElementSimilarityI
sim
in interface StructureElementSimilarityI
sx
- the first structure elementsd
- the second structure elementCopyright © 2018 Semantic Analytics Group @ Uniroma2. All rights reserved.