R/sim.R
temp__Sim_Ancestor.Rd
Sim_Ancestor
Sim_Ancestor(dag, terms, verbose = simona_opt$verbose)
Denote S_a and S_b are two sets of ancestor terms of term a and b (including a and b), the semantic similarity is defined as:
S_a
S_b
a
b
length(intersect(S_a, S_b))/length(union(S_a, S_b))
term_sim(dag, terms, method = "Sim_Ancestor")