question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

additional restrictions on summary_func?

See original GitHub issue

It 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jeromekellehercommented, Aug 13, 2019

I think this still needs doing @petrelharp?

0reactions
jeromekellehercommented, Jun 21, 2019

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found