Skip to content

Commit 67e48df

Browse files
committed
Scaladoc improvements: Random Variables
1 parent 8f1f5a8 commit 67e48df

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

dynaml-core/src/main/scala-2.11/io/github/mandar2812/dynaml/probability/IIDRandomVariable.scala

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
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+
* */
119
package io.github.mandar2812.dynaml.probability
220

321
import 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
* */
1232
trait 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
* */
4470
trait IIDRandomVarDistr[
4571
D, +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
* */
68100
trait IIDContinuousRVDistr[
69101
D, +Distr <: ContinuousDistr[D],

dynaml-core/src/main/scala-2.11/io/github/mandar2812/dynaml/probability/RandomVariable.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ import io.github.mandar2812.dynaml.utils._
2727

2828

2929
/**
30-
* @author mandar date: 26/7/16.
31-
*
3230
* Represents a bare bones representation
3331
* of a random variable only in terms of
3432
* samples.
3533
*
3634
* @tparam Domain The domain or space over which
3735
* the random variable is defined;
3836
* i.e. the range of values it can take
39-
*/
37+
*
38+
* @author mandar date: 26/7/16.
39+
* */
4040
abstract class RandomVariable[Domain] extends Serializable {
4141

4242
self =>

0 commit comments

Comments
 (0)