Talk:Functional coverage tree: Difference between revisions

m
→‎Weighted sums: Better when child values are different
m (→‎Weighted sums: Whoops.)
m (→‎Weighted sums: Better when child values are different)
Line 59:
... return covs / wts
...
>>> weights = [1, 1]
>>> child_cov = [0.5, 0.5]
>>> wt_avg(weights, child_cov)
0.5
>>> weights = [2, 3]
>>> wt_avg(weights, child_cov)
0.5
>>> weights = [1, 1]
>>> child_cov = [0.25, 0.75]
Anonymous user