Utils
Value members
Concrete methods
Array[Array] to Breeze DenseMatrix conversion
Array[Array] to Breeze DenseMatrix conversion
Useful for unpacking matrices which have come back to Scala from R via rscala
- Value Params
- a
A matrix represented as an array of arrays (row-major)
- Returns
A Breeze DenseMatrix representation of the matrix
Backsolve an upper-triangular linear system with a single RHS
Backsolve an upper-triangular linear system with a single RHS
- Value Params
- A
An upper-triangular matrix
- y
A single vector RHS
- Returns
The solution, x, of the linear system A x = y
Backsolve an upper-triangular linear system with multiple RHSs
Backsolve an upper-triangular linear system with multiple RHSs
- Value Params
- A
An upper-triangular matrix
- Y
A matrix with columns corresponding to RHSs
- Returns
Matrix of solutions, X, to the linear system A X = Y
Breeze DenseMatrix to Array[Array] conversion
Breeze DenseMatrix to Array[Array] conversion
Useful for sending matrices to R via rscala
- Value Params
- m
A Breeze DenseMatrix
- Returns
The matrix as an array of arrays (row-major)
Discrete cosine transform (DCT) of a DenseVector
Discrete cosine transform (DCT) of a DenseVector
Normalised by a factor of 2/N
- Value Params
- x
An input vector
- Returns
The normalised DCT-II of the input
Discrete cosine transform (DCT) of a DenseMatrix
Discrete cosine transform (DCT) of a DenseMatrix
DCT applied to rows and columns
- Value Params
- X
An input matrix
- inverse
Inverse or forward transform. Defaults to
false
- Returns
The normalised DCT-II of the input
Forward solve a lower-triangular linear system with a single RHS
Forward solve a lower-triangular linear system with a single RHS
- Value Params
- A
A lower-triangular matrix
- y
A single vector RHS
- Returns
The solution, x, of the linear system A x = y
Inverse discrete cosine transform (DCT) of a DenseVector
Inverse discrete cosine transform (DCT) of a DenseVector
Exactly inverts dct
- Value Params
- x
An input vector containing a transform
- Returns
The (unnormalised) DCT-III of the input
pairs plot
pairs plot
- Value Params
- mat
a matrix with variables in columns and observations in rows
- names
a sequence of variable names
- Returns
The breeze-viz Figure object
pairs plot (for unlabeled variables)
pairs plot (for unlabeled variables)
- Value Params
- mat
a matrix with variables in columns and observations in rows
- Returns
The breeze-viz Figure object