slib.sml.sm.core.measures.others.groupwise.indirect
Class Sim_groupwise_Average
java.lang.Object
slib.sml.sm.core.measures.others.groupwise.indirect.experimental.Sim_groupwise_general_abstract
slib.sml.sm.core.measures.others.groupwise.indirect.Sim_groupwise_Average
- All Implemented Interfaces:
- Sim_Groupwise, Sim_Groupwise_Indirect
public class Sim_groupwise_Average
- extends Sim_groupwise_general_abstract
Classic Average Measure Assumes score symmetry
- Author:
- Sebastien Harispe
Method Summary |
static double |
sim(slib.utils.impl.MatrixDouble<org.openrdf.model.URI,org.openrdf.model.URI> mat)
Compute the average of the values stored in the given matrix. |
double |
sim(Set<org.openrdf.model.URI> setA,
Set<org.openrdf.model.URI> setB,
SM_Engine rc,
SMconf groupwiseconf,
SMconf conf)
Compute the similarity between the given sets of concepts considering a particular configuration. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sim_groupwise_Average
public Sim_groupwise_Average()
sim
public static double sim(slib.utils.impl.MatrixDouble<org.openrdf.model.URI,org.openrdf.model.URI> mat)
- Compute the average of the values stored in the given matrix.
- Parameters:
mat
-
- Returns:
- the average of the matrix values
sim
public double sim(Set<org.openrdf.model.URI> setA,
Set<org.openrdf.model.URI> setB,
SM_Engine rc,
SMconf groupwiseconf,
SMconf conf)
throws slib.utils.ex.SLIB_Ex_Critic
- Description copied from interface:
Sim_Groupwise_Indirect
- Compute the similarity between the given sets of concepts considering a particular configuration.
Note that the specified pairwise configuration must override the pairwise configuration originally specified in the groupwise configuration (if any).
- Parameters:
setA
- the first set of verticessetB
- the second set of verticesrc
- the engine used to access specific information used by the measuresgroupwiseconf
- the groupwise configuration.conf
- the pairwise configuration.
- Returns:
- the semantic similarity of the pair of groups of concepts
- Throws:
slib.utils.ex.SLIB_Ex_Critic
Copyright © 2013. All Rights Reserved.