Utils

scalaglm.Utils$
object Utils

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Utils.type

Members list

Value members

Concrete methods

def aa2bdm(a: Array[Array[Double]]): DMD

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

def backSolve(A: DMD, y: DVD): DVD

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

def backSolve(A: DMD, Y: DMD): DMD

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

def bdm2aa(m: DMD): Array[Array[Double]]

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)

def dct(x: DVD): DVD

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

def dct2(X: DMD, inverse: Boolean): DMD

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

def fCDF(x: Double, d1: Double, d2: Double): Double

The CDF of the f-distribution

The CDF of the f-distribution

Attributes

def forwardSolve(A: DMD, y: DVD): DVD

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

def forwardSolve(A: DMD, Y: DMD): DMD

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

def idct(x: DVD): DVD

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

def idct2(x: DMD): DMD

dct2(x, true)

dct2(x, true)

Attributes

def pairs(mat: DMD, names: Seq[String]): Figure

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

def pairs(mat: DMD): Figure

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

def tCDF(t: Double, df: Double): Double

The CDF of the t-distribution

The CDF of the t-distribution

Attributes

def time[A](f: => A): A

A very simple function for timing computations - not for general use

A very simple function for timing computations - not for general use

Attributes