Utils
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Utils.type
Members list
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 parameters
- a
-
A matrix represented as an array of arrays (row-major)
Attributes
- 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 parameters
- A
-
An upper-triangular matrix
- y
-
A single vector RHS
Attributes
- 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 parameters
- A
-
An upper-triangular matrix
- Y
-
A matrix with columns corresponding to RHSs
Attributes
- 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 parameters
- m
-
A Breeze DenseMatrix
Attributes
- 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 parameters
- x
-
An input vector
Attributes
- 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 parameters
- X
-
An input matrix
- inverse
-
Inverse or forward transform. Defaults to
false
Attributes
- Returns
-
The normalised DCT-II of the input
The CDF of the f-distribution
The CDF of the f-distribution
Attributes
Forward solve a lower-triangular linear system with a single RHS
Forward solve a lower-triangular linear system with a single RHS
Value parameters
- A
-
A lower-triangular matrix
- y
-
A single vector RHS
Attributes
- Returns
-
The solution, x, of the linear system A x = y
Forward solve a lower-triangular linear system with multiple RHSs
Forward solve a lower-triangular linear system with multiple RHSs
Value parameters
- A
-
A lower-triangular matrix
- Y
-
A matrix with colums corresponding to RHSs
Attributes
- Returns
-
Matrix of solutions, X, to 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 parameters
- x
-
An input vector containing a transform
Attributes
- Returns
-
The (unnormalised) DCT-III of the input
pairs plot
pairs plot
Value parameters
- mat
-
a matrix with variables in columns and observations in rows
- names
-
a sequence of variable names
Attributes
- Returns
-
The breeze-viz Figure object
pairs plot (for unlabeled variables)
pairs plot (for unlabeled variables)
Value parameters
- mat
-
a matrix with variables in columns and observations in rows
Attributes
- Returns
-
The breeze-viz Figure object
The CDF of the t-distribution
The CDF of the t-distribution
Attributes
A very simple function for timing computations - not for general use
A very simple function for timing computations - not for general use