o

scalaglm

# Utils

#### objectUtils

Linear Supertypes
AnyRef, Any
Ordering
1. Alphabetic
2. By Inheritance
Inherited
1. Utils
2. AnyRef
3. Any
1. Hide All
2. Show All
Visibility
1. Public
2. Protected

### Value Members

1. final def !=(arg0: Any): Boolean
Definition Classes
AnyRef → Any
2. final def ##: Int
Definition Classes
AnyRef → Any
3. final def ==(arg0: Any): Boolean
Definition Classes
AnyRef → Any
4. def aa2bdm(a: Array[Array[Double]]): DenseMatrix[Double]

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

5. final def asInstanceOf[T0]: T0
Definition Classes
Any
6. def backSolve(A: DenseMatrix[Double], Y: DenseMatrix[Double]): DenseMatrix[Double]

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

7. def backSolve(A: DenseMatrix[Double], y: DenseVector[Double]): DenseVector[Double]

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

8. def bdm2aa(m: DenseMatrix[Double]): 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)

9. def clone(): AnyRef
Attributes
protected[lang]
Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.CloneNotSupportedException]) @native()
10. final def eq(arg0: AnyRef): Boolean
Definition Classes
AnyRef
11. def equals(arg0: AnyRef): Boolean
Definition Classes
AnyRef → Any
12. def fCDF(x: Double, d1: Double, d2: Double): Double

The CDF of the f-distribution

13. def finalize(): Unit
Attributes
protected[lang]
Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.Throwable])
14. def forwardSolve(A: DenseMatrix[Double], y: DenseVector[Double]): DenseVector[Double]

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

15. final def getClass(): Class[_ <: AnyRef]
Definition Classes
AnyRef → Any
Annotations
@native()
16. def hashCode(): Int
Definition Classes
AnyRef → Any
Annotations
@native()
17. final def isInstanceOf[T0]: Boolean
Definition Classes
Any
18. final def ne(arg0: AnyRef): Boolean
Definition Classes
AnyRef
19. final def notify(): Unit
Definition Classes
AnyRef
Annotations
@native()
20. final def notifyAll(): Unit
Definition Classes
AnyRef
Annotations
@native()
21. def pairs(mat: DenseMatrix[Double]): 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

22. def pairs(mat: DenseMatrix[Double], 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

23. final def synchronized[T0](arg0: => T0): T0
Definition Classes
AnyRef
24. def tCDF(t: Double, df: Double): Double

The CDF of the t-distribution

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

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

26. def toString()
Definition Classes
AnyRef → Any
27. final def wait(): Unit
Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.InterruptedException])
28. final def wait(arg0: Long, arg1: Int): Unit
Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.InterruptedException])
29. final def wait(arg0: Long): Unit
Definition Classes
AnyRef
Annotations
@throws(classOf[java.lang.InterruptedException]) @native()