1+ /*
2+ Licensed to the Apache Software Foundation (ASF) under one
3+ or more contributor license agreements. See the NOTICE file
4+ distributed with this work for additional information
5+ regarding copyright ownership. The ASF licenses this file
6+ to you under the Apache License, Version 2.0 (the
7+ "License"); you may not use this file except in compliance
8+ with the License. You may obtain a copy of the License at
9+
10+ http://www.apache.org/licenses/LICENSE-2.0
11+
12+ Unless required by applicable law or agreed to in writing,
13+ software distributed under the License is distributed on an
14+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+ KIND, either express or implied. See the License for the
16+ specific language governing permissions and limitations
17+ under the License.
18+ * */
119package io .github .mandar2812 .dynaml .probability
220
321import breeze .stats .distributions .{ContinuousDistr , Density , Rand }
@@ -8,6 +26,8 @@ import io.github.mandar2812.dynaml.probability.distributions.{AbstractContinuous
826 * An independent and identically distributed
927 * [[RandomVariable ]] represented as a [[Stream ]]
1028 *
29+ * @tparam D The base domain
30+ * @tparam R Random variable defined over the base domain
1131 * */
1232trait IIDRandomVariable [D , + R <: RandomVariable [D ]] extends RandomVariable [Stream [D ]] {
1333
@@ -40,6 +60,12 @@ object IIDRandomVariable {
4060
4161/**
4262 * An i.i.d random variable with a defined distribution.
63+ *
64+ * @tparam D Base domain
65+ * @tparam Dist A breeze distribution defined over the
66+ * base domain.
67+ * @tparam R A random variable defined over the base domain
68+ * and having distribution of type [[Dist ]]
4369 * */
4470trait IIDRandomVarDistr [
4571D , + Dist <: Density [D ] with Rand [D ],
@@ -64,6 +90,12 @@ D, +Dist <: Density[D] with Rand[D],
6490 * An IID Random variable constructed
6591 * from a continuous random variable having
6692 * a defined distribution.
93+ *
94+ * @tparam D Base domain
95+ * @tparam Distr A breeze probability density defined over the
96+ * base domain.
97+ * @tparam R A random variable defined over the base domain
98+ * and having distribution of type [[Distr ]]
6799 * */
68100trait IIDContinuousRVDistr [
69101D , + Distr <: ContinuousDistr [D ],
0 commit comments