Interface IFilter
-
- All Known Implementing Classes:
LinearFilter
public interface IFilterImplements the filter interface.- Version:
- 1.0
- Author:
- Axel-C. Ngonga Ngomo (ngonga@informatik.uni-leipzig.de), Kleanthi Georgala (georgala@informatik.uni-leipzig.de)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AMappingfilter(AMapping map, double threshold)Naive filter function for mapping using a threshold as filtering criterion.AMappingfilter(AMapping map, String condition, double threshold, double mainThreshold, ACache source, ACache target, String sourceVar, String targetVar)Filter function for mapping using a condition and two thresholds as filtering criterion.AMappingfilter(AMapping map, String condition, double threshold, ACache source, ACache target, String sourceVar, String targetVar)Filter function for mapping using a condition and a threshold as filtering criterion.AMappingfilter(AMapping map1, AMapping map2, double coef1, double coef2, double threshold, String operation)Filter for linear combinations when operation is set to "add", given the expression a*sim1 + b*sim2 >= t or multiplication given the expression (a*sim1)*(b*sim2) >= t, which is not likely to be used.AMappingreversefilter(AMapping map, String condition, double threshold, double mainThreshold, ACache source, ACache target, String sourceVar, String targetVar)Reverse filter function for mapping using a condition and two thresholds as filtering criterion.
-
-
-
Method Detail
-
filter
AMapping filter(AMapping map, double threshold)
Naive filter function for mapping using a threshold as filtering criterion.- Parameters:
map- Map bearing the results of Link Specificationthreshold- Value of threshold- Returns:
- a filtered mapping that satisfies sim >= threshold
-
filter
AMapping filter(AMapping map, String condition, double threshold, ACache source, ACache target, String sourceVar, String targetVar)
Filter function for mapping using a condition and a threshold as filtering criterion.- Parameters:
map- Map bearing the results of Link Specificationcondition- The condition for filteringthreshold- Value of thresholdsource- Source knowledge basetarget- Target knowledge basesourceVar- Source propertytargetVar- Target property- Returns:
- a filtered mapping that satisfies both the condition and the threshold
-
filter
AMapping filter(AMapping map, String condition, double threshold, double mainThreshold, ACache source, ACache target, String sourceVar, String targetVar)
Filter function for mapping using a condition and two thresholds as filtering criterion.- Parameters:
map- map bearing the results of Link Specificationcondition- The condition for filteringthreshold- Value of the first thresholdmainThreshold- Value of second thresholdsource- Source knowledge basetarget- Target knowledge basesourceVar- Source propertytargetVar- Target property- Returns:
- a filtered mapping that satisfies both the condition and the thresholds
-
reversefilter
AMapping reversefilter(AMapping map, String condition, double threshold, double mainThreshold, ACache source, ACache target, String sourceVar, String targetVar)
Reverse filter function for mapping using a condition and two thresholds as filtering criterion.- Parameters:
map- Map bearing the results of Link Specificationcondition- The condition for filteringthreshold- Value of the first thresholdmainThreshold- Value of second thresholdsource- Source knowledge basetarget- Target knowledge basesourceVar- Source propertytargetVar- Target property- Returns:
- a filtered mapping that satisfies both the condition and the thresholds
-
filter
AMapping filter(AMapping map1, AMapping map2, double coef1, double coef2, double threshold, String operation)
Filter for linear combinations when operation is set to "add", given the expression a*sim1 + b*sim2 >= t or multiplication given the expression (a*sim1)*(b*sim2) >= t, which is not likely to be used.- Parameters:
map1- Map bearing the results of sim1 >= (t-b)/a for add, sim1 >= t/(a*b) for multmap2- Map bearing the results of sim2 >= (t-a)/b for add, sim2 >= t/(a*b) for multcoef1- Value of first coefficientcoef2- Value of second coefficientthreshold- Value of thresholdoperation- Mathematical operation- Returns:
- a filtered mapping that satisfies a*sim1 + b*sim2 >= t for add, (a*sim1)*(b*sim2) >= t for mult
-
-