What is this data ... where are they trying? (Haskell)
2 answers
As for the "why", the type class Distribution
defines rvar
how
class Distribution d t where
rvar :: d t -> RVar t
Thus, the type parameter of this distribution determines the type of samples that you selected from rvar
. Thus, using GADT, a distribution Multinomial
is defined as one that always returns multiple values ββper sample, even if it is built with only one value a
.
+5
source to share