|
Alignment API and Server 4.1.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.align.impl.MatrixMeasure
public abstract class MatrixMeasure
Implements the structure needed for recording class similarity or dissimilarity within a matrix structure.
Field Summary | |
---|---|
HashMap<Object,Integer> |
classlist1
|
HashMap<Object,Integer> |
classlist2
|
double[][] |
clmatrix
|
int |
i
|
HashMap<Object,Integer> |
indlist1
|
HashMap<Object,Integer> |
indlist2
|
double[][] |
indmatrix
|
int |
j
|
int |
l1
|
int |
l2
|
int |
nbclass1
|
int |
nbclass2
|
int |
nbind1
|
int |
nbind2
|
int |
nbprop1
|
int |
nbprop2
|
private NumberFormat |
numFormat
|
LoadedOntology |
onto1
|
LoadedOntology |
onto2
|
double[][] |
prmatrix
|
HashMap<Object,Integer> |
proplist1
|
HashMap<Object,Integer> |
proplist2
|
boolean |
similarity
|
Constructor Summary | |
---|---|
MatrixMeasure()
|
Method Summary | |
---|---|
void |
compute(Properties params)
actually computes the similarity and store it in the adequate structures |
double |
getClassSimilarity(Object c1,
Object c2)
Accessors to the stored similarity values |
double |
getIndividualSimilarity(Object i1,
Object i2)
|
double |
getPropertySimilarity(Object p1,
Object p2)
|
boolean |
getSimilarity()
Is it a similarity or a distance? |
void |
initialize(LoadedOntology o1,
LoadedOntology o2)
Initialize the similarity value with various useful structures |
void |
initialize(LoadedOntology onto1,
LoadedOntology onto2,
Alignment align)
|
void |
printClassSimilarityMatrix(String type)
Printers of the obtained similarity values |
void |
printIndividualSimilarityMatrix(String type)
|
private void |
printMatrix(int nb1,
HashMap<Object,Integer> ent1,
HashMap<Object,Integer> ent2,
double[][] matrix)
|
void |
printPropertySimilarityMatrix(String type)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.inrialpes.exmo.align.impl.Similarity |
---|
classMeasure, individualMeasure, propertyMeasure |
Field Detail |
---|
public boolean similarity
public LoadedOntology onto1
public LoadedOntology onto2
public int nbclass1
public int nbclass2
public int nbprop1
public int nbprop2
public int nbind1
public int nbind2
public int i
public int j
public int l1
public int l2
public HashMap<Object,Integer> classlist2
public HashMap<Object,Integer> classlist1
public HashMap<Object,Integer> proplist2
public HashMap<Object,Integer> proplist1
public HashMap<Object,Integer> indlist2
public HashMap<Object,Integer> indlist1
private NumberFormat numFormat
public double[][] clmatrix
public double[][] prmatrix
public double[][] indmatrix
Constructor Detail |
---|
public MatrixMeasure()
Method Detail |
---|
public void initialize(LoadedOntology onto1, LoadedOntology onto2, Alignment align)
initialize
in interface Similarity
public void initialize(LoadedOntology o1, LoadedOntology o2)
Similarity
initialize
in interface Similarity
public void compute(Properties params)
Similarity
compute
in interface Similarity
public double getIndividualSimilarity(Object i1, Object i2)
getIndividualSimilarity
in interface Similarity
public double getClassSimilarity(Object c1, Object c2)
Similarity
getClassSimilarity
in interface Similarity
public double getPropertySimilarity(Object p1, Object p2)
getPropertySimilarity
in interface Similarity
private void printMatrix(int nb1, HashMap<Object,Integer> ent1, HashMap<Object,Integer> ent2, double[][] matrix)
public boolean getSimilarity()
Similarity
getSimilarity
in interface Similarity
public void printClassSimilarityMatrix(String type)
Similarity
printClassSimilarityMatrix
in interface Similarity
public void printPropertySimilarityMatrix(String type)
printPropertySimilarityMatrix
in interface Similarity
public void printIndividualSimilarityMatrix(String type)
printIndividualSimilarityMatrix
in interface Similarity
|
Alignment API and Server 4.1.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |