IC_depth
IC_height(dag, use_cache = simona_opt$use_cache, verbose = simona_opt$verbose)
For a term t
in the DAG, denote d
as the maximal distance from root (i.e. the depth) and h
as the maximal distance to leaves (i.e. the height),
the relative position p
on the longest path from root to leaves via term t
is calculated as:
= (h + 1)/(h + d + 1) p
In the formula where 1 is added gets rid of p = 0
. Then the information content is:
= -log(p)
IC = -log((h+1)/(h+d+1))