Closed avibryant closed 4 years ago
This obviously needs to be resolved before the final 0.3.0 release since it would be a breaking change after that.
One argument against using rv
is that generator
is also producing a (different kind of) random variable from the same distribution.
An argument against using param
is that the Real
you get is not necessarily (and in fact almost never) the same as the raw, untransformed parameter that HMC
will be working with.
I'm currently really liking @snoble's suggest of latent
As of
0.3.0rc2
, the way to create aReal
random variable from anyContinuous
distribution is with thereal
method.As I work on multivariate distributions, this seems short-sighted, since a
MVNormal
distribution's random variable would be aVec[Real]
, andreal
is not an awesome name for a method that returns that.Options might include:
real
as the method for univariate distributions (withvec(k)
for vectors of independent rvs), and usevec
as the method for anMV(k)
distribution.param
for bothrv
orrandomVariable
for both... something else?