it.unibo.cs.USI.tools
Class ToolKit
java.lang.Object
it.unibo.cs.USI.tools.ToolKit
public class ToolKit
- extends java.lang.Object
- Author:
- Matteo Magnani
Jun 5, 2005 3:25:11 AM
Method Summary |
double |
belief(UncertainSchemaElementPair[] input,
int[] target)
|
private TopKNode[] |
getTopK(int k,
MappingValuePair[][] relationshipsOrderedByLikelihood,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
boolean twoPairs)
|
private TopKNode[] |
getTopKConsistent(int k,
MappingValuePair[][] relationshipsOrderedByLikelihood,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
SameSchemaRelationshipsTable st1,
SameSchemaRelationshipsTable st2)
|
TopKNode[][] |
getTopKInterval(int k,
MappingValuePair[][] relationshipsOrderedByBelief,
MappingValuePair[][] relationshipsOrderedByPlausibility,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
boolean checkConsistency)
|
TopKNode[][] |
getTopKInterval(int k,
MappingValuePair[][] relationshipsOrderedByBelief,
MappingValuePair[][] relationshipsOrderedByPlausibility,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
boolean checkConsistency,
boolean twoRelationships,
Schema s1,
Schema s2)
|
TopKNode[] |
getTopKProbability(int k,
MappingValuePair[][] relationshipsOrderedByProbability,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
boolean checkConsistency,
boolean twoRelationships,
Schema s1,
Schema s2)
|
double |
likelihood(MappingValuePair[][] table,
int[] schema)
|
MappingValuePair[][] |
orderBeliefs(UncertainSchemaElementPair[] USRs)
TODO Test this method, I'm not sure it works... |
MappingValuePair[][] |
orderPlausibilities(UncertainSchemaElementPair[] USRs)
|
MappingValuePair[][] |
orderPlausibilitiesTwoRelationships(UncertainSchemaElementPair[] USRs)
|
double |
plausibility(UncertainSchemaElementPair[] input,
int[] target)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
frame
private Frame frame
maxNumOfInconsistencies
private int maxNumOfInconsistencies
inconsistencies
public int inconsistencies
ToolKit
public ToolKit(Frame frame)
- Parameters:
frame
-
ToolKit
public ToolKit(Frame frame,
int maxNumOfInconsistencies)
- Parameters:
frame
-
plausibility
public double plausibility(UncertainSchemaElementPair[] input,
int[] target)
belief
public double belief(UncertainSchemaElementPair[] input,
int[] target)
likelihood
public double likelihood(MappingValuePair[][] table,
int[] schema)
orderPlausibilities
public MappingValuePair[][] orderPlausibilities(UncertainSchemaElementPair[] USRs)
- Parameters:
USRs
-
- Returns:
orderPlausibilitiesTwoRelationships
public MappingValuePair[][] orderPlausibilitiesTwoRelationships(UncertainSchemaElementPair[] USRs)
- Parameters:
USRs
- TODO Do the same for beliefs
- Returns:
orderBeliefs
public MappingValuePair[][] orderBeliefs(UncertainSchemaElementPair[] USRs)
- TODO Test this method, I'm not sure it works...
- Parameters:
USRs
-
- Returns:
getTopKProbability
public TopKNode[] getTopKProbability(int k,
MappingValuePair[][] relationshipsOrderedByProbability,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
boolean checkConsistency,
boolean twoRelationships,
Schema s1,
Schema s2)
- Parameters:
k
- relationshipsOrderedByProbability
- relS1
- relS2
- entS1
- entS2
- checkConsistency
-
- Returns:
getTopKInterval
public TopKNode[][] getTopKInterval(int k,
MappingValuePair[][] relationshipsOrderedByBelief,
MappingValuePair[][] relationshipsOrderedByPlausibility,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
boolean checkConsistency)
getTopKInterval
public TopKNode[][] getTopKInterval(int k,
MappingValuePair[][] relationshipsOrderedByBelief,
MappingValuePair[][] relationshipsOrderedByPlausibility,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
boolean checkConsistency,
boolean twoRelationships,
Schema s1,
Schema s2)
- Parameters:
k
- TODO TwoRelationshipsrelationshipsOrderedByBelief
- relationshipsOrderedByPlausibility
- relS1
- relS2
- entS1
- entS2
- checkConsistency
-
- Returns:
getTopKConsistent
private TopKNode[] getTopKConsistent(int k,
MappingValuePair[][] relationshipsOrderedByLikelihood,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
SameSchemaRelationshipsTable st1,
SameSchemaRelationshipsTable st2)
- Parameters:
k
- relationshipsOrderedByLikelihood
- relS1
- relS2
- entS1
- entS2
-
- Returns:
- The top K consistent sets of relationships, according to their likelihood.
getTopK
private TopKNode[] getTopK(int k,
MappingValuePair[][] relationshipsOrderedByLikelihood,
ObjectIndexes[] relS1,
ObjectIndexes[] relS2,
SchemaElement[] entS1,
SchemaElement[] entS2,
boolean twoPairs)
- Parameters:
k
- relationshipsOrderedByLikelihood
- relS1
- relS2
- entS1
- entS2
-
- Returns: