mitchelloharawild / distributional

Vectorised distributions for R
https://pkg.mitchelloharawild.com/distributional
GNU General Public License v3.0
94 stars 15 forks source link

Change distribution structure to allow vectorised calculation of methods #25

Open mitchelloharawild opened 4 years ago

mitchelloharawild commented 4 years ago

Currently the package calls r/p/d/q functions one distribution at a time. If the distribution class handles its own indexing (rather than using a list), we can take advantage of the vectorised nature of these methods. This would improve both speed and space efficiency, but would be substantially more complicated to implement. It would also allow distribution methods to accept inputs that aren't easily split by new_dist() (such as arrays).

mitchelloharawild commented 3 years ago

This is lower priority now that some form of vectorisation (#52) is implemented. The value proposition here is less enticing than the complexity it introduces when compared to #52.