mitchelloharawild / distributional

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

Add long form alternative to dist_mixture() #45

Open mitchelloharawild opened 3 years ago

mitchelloharawild commented 3 years ago

A useful alternative interface for dist_mixture() would accept a vector of distributions and return a single value. Similar to the semantics of paste(collapse=""). @robjhyndman, this will constitute a lower interface for ensemble() that doesn't require dist_mixture(<dist>[1], <dist>[2]>, weights = <dbl[2]>).