Talk:Functional coverage tree: Difference between revisions
Content added Content deleted
m (→Weighted sums: Whoops.) |
m (→Weighted sums: Better when child values are different) |
||
Line 59: | Line 59: | ||
... return covs / wts |
... 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] |
>>> weights = [1, 1] |
||
>>> child_cov = [0.25, 0.75] |
>>> child_cov = [0.25, 0.75] |