object Utils
- Alphabetic
- By Inheritance
- Utils
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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
- a
A matrix represented as an array of arrays (row-major)
- returns
A Breeze DenseMatrix representation of the matrix
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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
- 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
- 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
- A
An upper-triangular matrix
- y
A single vector RHS
- returns
The solution, x, of 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
- m
A Breeze DenseMatrix
- returns
The matrix as an array of arrays (row-major)
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- 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
- x
An input vector
- returns
The normalised DCT-II of the input
- def dct2(X: DMD, inverse: Boolean = false): DMD
Discrete cosine transform (DCT) of a DenseMatrix
Discrete cosine transform (DCT) of a DenseMatrix
DCT applied to rows and columns
- X
An input matrix
- inverse
Inverse or forward transform. Defaults to
false
- returns
The normalised DCT-II of the input
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fCDF(x: Double, d1: Double, d2: Double): Double
The CDF of the f-distribution
- 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
- A
A lower-triangular matrix
- Y
A matrix with colums corresponding to RHSs
- returns
Matrix of solutions, X, to the linear system A X = Y
- 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
- A
A lower-triangular matrix
- y
A single vector RHS
- returns
The solution, x, of the linear system A x = y
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def idct(x: DVD): DVD
Inverse discrete cosine transform (DCT) of a DenseVector
Inverse discrete cosine transform (DCT) of a DenseVector
Exactly inverts
dct
- x
An input vector containing a transform
- returns
The (unnormalised) DCT-III of the input
- def idct2(x: DMD): DMD
dct2(x, true)
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def pairs(mat: DMD): Figure
pairs plot (for unlabeled variables)
pairs plot (for unlabeled variables)
- mat
a matrix with variables in columns and observations in rows
- returns
The breeze-viz Figure object
- def pairs(mat: DMD, names: Seq[String]): Figure
pairs plot
pairs plot
- mat
a matrix with variables in columns and observations in rows
- names
a sequence of variable names
- returns
The breeze-viz Figure object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tCDF(t: Double, df: Double): Double
The CDF of the t-distribution
- def time[A](f: => A): A
A very simple function for timing computations - not for general use
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)