MatrixCalc

scalation.mathstat.MatrixCalc
class MatrixCalc(x: MatrixD, header: VectorS)

The MattixCalc class supports simple simple calculations on elements in a matrix.

Value parameters

header

the column names

x

the matrix of data

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def fill(c1: Int, c2: Int, offset: Int, formula: FunctionS2S): Unit

Perform calculations for each row using the given formula. Usage: val q = new MatrixCalc (x, hd) Usage: q.fill (3, 2, 1, (zt: Double) => r * zt)

Perform calculations for each row using the given formula. Usage: val q = new MatrixCalc (x, hd) Usage: q.fill (3, 2, 1, (zt: Double) => r * zt)

Value parameters

c1

the column to be assigned

c2

the column supplying the data

formula

the c1 = formula (c2) appropriately offset

offset

the row index offset applied to c2 (e.g., get past data)

Attributes

def show(): Unit

Show header and the matrix.

Show header and the matrix.

Attributes