More stuff on calculating theoretical error bounds
Move that to its own module. Move from newton to brentq so that it works. Add method to find k for a desired value of epsilon.
This looks awesome! Maybe we should use find_k so that a user can either specify k or an error bounds when initializing a KMV... thoughts?
Also, find_k should also accept in an expected set size D if it's known... in this case, finding the optimal k is analytic -- k = 2 * (1 / (p^2 * pi) - 1)
Yeah, those are both very reasonable suggestions. Perhaps I'll get around to adding them soon..
On Tue, Oct 1, 2013 at 3:27 PM, Micha Gorelick [email protected] wrote:
Also,
find_kshould also accept in an expected set sizeDif it's known... in this case, finding the optimalkis analytic --k = 2 * (1 / (p^2 * pi) - 1)Reply to this email directly or view it on GitHub: https://github.com/mynameisfiber/countmemaybe/pull/1#issuecomment-25480033