case class RandomMatD(dim1: Int = 5, dim2: Int = 10, max: Double = 20.0, min: Double = 0.0, density: Double = 1.0, stream: Int = 0) extends VariateMat with Product with Serializable
The RandomMatD
class generates a random matrix of doubles.
- dim1
the number of rows in the matrix
- dim2
the number of columns in the matrix
- max
generate integers in the range 0 (inclusive) to max (inclusive)
- min
generate integers in the range 0 (inclusive) to max (inclusive)
- density
sparsity basis = 1 - density
- stream
the random number stream
- Alphabetic
- By Inheritance
- RandomMatD
- Serializable
- Serializable
- Product
- Equals
- VariateMat
- Error
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
RandomMatD(dim1: Int = 5, dim2: Int = 10, max: Double = 20.0, min: Double = 0.0, density: Double = 1.0, stream: Int = 0)
- dim1
the number of rows in the matrix
- dim2
the number of columns in the matrix
- max
generate integers in the range 0 (inclusive) to max (inclusive)
- min
generate integers in the range 0 (inclusive) to max (inclusive)
- density
sparsity basis = 1 - density
- stream
the random number stream
Value Members
- val density: Double
- val dim1: Int
- val dim2: Int
-
def
discrete: Boolean
Determine whether the distribution is discrete or continuous.
Determine whether the distribution is discrete or continuous.
- Definition Classes
- VariateMat
-
final
def
flaw(method: String, message: String): Unit
Show the flaw by printing the error message.
Show the flaw by printing the error message.
- method
the method where the error occurred
- message
the error message
- Definition Classes
- Error
-
def
gen: MatrixD
Determine the next random double matrix for the particular distribution.
Determine the next random double matrix for the particular distribution.
- Definition Classes
- RandomMatD → VariateMat
-
def
igen: MatrixI
Determine the next random integer matrix for the particular distribution.
Determine the next random integer matrix for the particular distribution. It is only valid for discrete random variates.
- Definition Classes
- RandomMatD → VariateMat
- val max: Double
-
def
mean: MatrixD
Compute the matrix mean for the particular distribution.
Compute the matrix mean for the particular distribution.
- Definition Classes
- RandomMatD → VariateMat
- val min: Double
-
def
pf(z: MatrixD): Double
Compute the probability function (pf): The probability density function (pdf) for continuous RVM's or the probability mass function (pmf) for discrete RVM's.
Compute the probability function (pf): The probability density function (pdf) for continuous RVM's or the probability mass function (pmf) for discrete RVM's.
- z
the mass point/matrix whose probability is sought
- Definition Classes
- RandomMatD → VariateMat
-
def
rlegenc: RleMatrixD
Determine the next random Rle matrix for the particular distribution.
Determine the next random Rle matrix for the particular distribution. Repetition based upon runLength is used to create column vectors.
- Definition Classes
- RandomMatD → VariateMat
-
def
rlegenr: RleMatrixD
Determine the next random Rle matrix for the particular distribution.
Determine the next random Rle matrix for the particular distribution. Repetition based upon runLength is used to create row vectors.
- Definition Classes
- RandomMatD → VariateMat
- val stream: Int