Closed klocey closed 4 months ago
@ethanwhite please correct me if I'm wrong - I think what we had in mind was a general function that would give the RAD for a variety of different distributions, which never got written. If you only need the RAD for Zipf distribution though, your code looks good to me. Ethan, shall we remove this function or get down and work it out?
@ethanwhite @rueuntal I think what we had in mind was a general function that would give the RAD for a variety of different distributions, which never got written.
This is what I figured. Made sense.
@rueuntal - that is what I was envisioning. If it's easy to write the generic form that would be great. I had stubbed it in at some point and never gotten back to it.
@klocey @ethanwhite I've made an attempt, please let me know if anything doesn't look right.
The code that Ken has in mind can be written as get_rad_from_cdf(stats.zipf, S, p)
.
This looks good to me from a quick read. @klocey - can you test this and see if it's giving you the expected results?
Why does the function get_rad_from_cdf(cdf, S) have nothing in it other than a docstring? This should be fine, right?