GroupSim_SimCOU
GroupSim_SimCOU(
dag,
group1,
group2,
IC_method = NULL,
verbose = simona_opt$verbose
)It is based on the dot product of two vectors p and q which correspond to terms in group1 and group2.
p and q have the same length as the total number of terms. Value of position i in p or q corresponds to term t. The value
takes IC(t) if t is an ancestor of any term in p or q, and the value takes zero if t is not. The
similarity betweem group1 terms and group2 terms is calculated as:
<p,q>/||p||/||q||where <p,q> is the dot product between the two, and ||p|| or ||q|| is the norm of the vector.
The equation can be written as:
group_sim = sum_{x in intersect(A, B)}(IC(x)^2) /
sqrt(sum_{x in A}(IC(x)^2)) /
sqrt(sum_{x in B}(IC(x)^2))IC method can be set via control = list(IC_method = ...).