@@ -15,6 +15,11 @@ MixtureDistribution, MixtureWithConfBars}
1515 * Top level class for representing
1616 * random variable mixtures.
1717 *
18+ * @tparam Domain Domain over which each mixture
19+ * component is defined
20+ *
21+ * @tparam BaseRV The type of each mixture component, must
22+ * be a sub type of [[RandomVariable ]]
1823 * @author mandar2812 date 14/06/2017.
1924 * */
2025trait MixtureRV [Domain , BaseRV <: RandomVariable [Domain ]] extends
@@ -44,6 +49,13 @@ object MixtureRV {
4449
4550/**
4651 * A random variable mixture over a continuous domain
52+ *
53+ * @tparam Domain Domain over which each mixture
54+ * component is defined
55+ *
56+ * @tparam BaseRV The type of each mixture component, must
57+ * be a sub type of [[ContinuousRandomVariable ]]
58+ *
4759 * @author mandar2812 date 14/06/2017
4860 * */
4961trait ContinuousMixtureRV [Domain , BaseRV <: ContinuousRandomVariable [Domain ]] extends
@@ -53,6 +65,13 @@ trait ContinuousMixtureRV[Domain, BaseRV <: ContinuousRandomVariable[Domain]] ex
5365/**
5466 * A random variable mixture over a continuous domain,
5567 * having a computable probability distribution
68+ *
69+ * @tparam Domain Domain over which each mixture
70+ * component is defined
71+ *
72+ * @tparam BaseRV The type of each mixture component, must
73+ * be a sub type of [[ContinuousRVWithDistr ]]
74+ *
5675 * @author mandar2812 date 14/06/2017
5776 * */
5877class ContinuousDistrMixture [Domain , BaseRV <: ContinuousRVWithDistr [Domain , ContinuousDistr [Domain ]]](
@@ -70,6 +89,23 @@ class ContinuousDistrMixture[Domain, BaseRV <: ContinuousRVWithDistr[Domain, Con
7089 selector.underlyingDist.params)
7190}
7291
92+ /**
93+ * A random variable mixture over a continuous domain,
94+ * having a computable probability distribution and ability
95+ * to generate error bars/confidence intervals.
96+ *
97+ * @tparam Domain Domain over which each mixture
98+ * component is defined
99+ *
100+ * @tparam Var The type of second moment i.e. variance of the random variables
101+ * defined over [[Domain ]].
102+ *
103+ * @tparam BaseDistr The type of each mixture component distribution,
104+ * must be a continuous breeze distribution with
105+ * defined moments and implement [[HasErrorBars ]]
106+ *
107+ * @author mandar2812 date 14/06/2017
108+ * */
73109private [dynaml] class ContMixtureRVBars [Domain , Var ,
74110BaseDistr <: ContinuousDistr [Domain ] with Moments [Domain , Var ] with HasErrorBars [Domain ]](
75111 distributions : Seq [BaseDistr ],
@@ -81,6 +117,10 @@ BaseDistr <: ContinuousDistr[Domain] with Moments[Domain, Var] with HasErrorBars
81117 override val underlyingDist = MixtureWithConfBars (distributions, selector.underlyingDist.params)
82118}
83119
120+ /**
121+ * Contains convenience methods for creating
122+ * various mixture random variable instances.
123+ * */
84124object ContinuousDistrMixture {
85125
86126 def apply [Domain , BaseRV <: ContinuousDistrRV [Domain ]](
0 commit comments