additional restrictions on summary_func?
See original GitHub issueIt should probably be a guaranteed property of general statistics that if you compute a branch statistic before and after simplifying then you’ll get the same answer. Unsimplified tree sequences can have dangling branches, which should have weight 0, so unpolarised statistics will assign value
f(0) + f(total_weight)
to these branches. So, to ensure that this property holds, we need to require that
f(0) = 0
f(total_weight) = 0
This is the case for all statistics we’ve defined or discussed so far (e.g., for phenotypic covariance, we deifned the weights to sum to zero).
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How can I format the summary value in ngx-datatable with ...
I implemented ngx-datatable in my angular project and I need to display the summary row for my table. Base on the document, I...
Read more >Extending dataReporter
This is done by calling the summaryFunction() creator with the user-defined function as the first argument, and additional arguments ...
Read more >SummaryRow applies even when there is no SummaryFunc
To have both working, my proposal is to introduce additional datatable input called defaultSummaryFunction so you can specify a fallback ...
Read more >XtraReport.ScriptSecurityPermissions Property | Reporting
Deny property specifies whether the execution of such scripts is allowed or denied. ScriptSecurityPermissions. Important. To apply restrictions, it is required ...
Read more >How to debug inoperative ListGrid summary functions?
I'm hoping to hear of some other checks I can make to see that the values are being (or not being) accumulated by...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think this still needs doing @petrelharp?
I agree - the general stats interface isn’t high-performance anyway, so checking the function here makes total sense. (We should keep in mind people that are not us also, who are developing stats that don’t end up being implemented in tskit)