VectorT

scalation.mathstat.VectorT
See theVectorT companion class
object VectorT

The VectorT object is the companion object for the VectorT class.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
VectorT.type

Members list

Value members

Concrete methods

def apply(xs: IndexedSeq[TimeNum]): VectorT

Create a VectorT from an immutable indexed sequence of TimeNums.

Create a VectorT from an immutable indexed sequence of TimeNums.

Value parameters

xs

the sequence/array of the TimeNum numbers

Attributes

def apply(xs: IndexedSeq[TimeNum]): VectorT

Create a VectorT from a mutable indexed sequence of TimeNums.

Create a VectorT from a mutable indexed sequence of TimeNums.

Value parameters

xs

the sequence/array of the TimeNum numbers

Attributes

def apply(x: TimeNum, xs: TimeNum*): VectorT

Create a VectorT from one or more values (repeated values TimeNum*).

Create a VectorT from one or more values (repeated values TimeNum*).

Value parameters

x

the first TimeNum number

xs

the varargs of TimeNum numbers

Attributes

def apply(x: String, xs: String*): VectorT

Create a VectorT from one or more values (repeated values String*). For numeric types, assign missing value indicator upon format failure.

Create a VectorT from one or more values (repeated values String*). For numeric types, assign missing value indicator upon format failure.

Value parameters

x

the first string

xs

the varargs of strings

Attributes

def fill(n: Int)(x: TimeNum): VectorT

Create a VectorT with n elements and fill it with the value x.

Create a VectorT with n elements and fill it with the value x.

Value parameters

n

the number of elements

x

the value to assign to all elements

Attributes

def fromStrings(xs: IndexedSeq[String]): VectorT

Create a VectorT from a mutable indexed sequence of strings. FIX - for numeric types, assign missing value indicator upon format failure.

Create a VectorT from a mutable indexed sequence of strings. FIX - for numeric types, assign missing value indicator upon format failure.

Value parameters

xs

the sequence/array of the string numbers

Attributes

def map2Long(a: Array[TimeNum]): (Array[Long], BiMap[TimeNum, Long])

Convert an Array [TimeNum] into an Array [Long] by mapping each distinct value in Array [TimeNum] into a distinct numeric integer value, returning the new vector and the bidirectional mapping. Use the from method in BiMap to recover the original TimeNum. e.g., VectorT (_0, _1) will be mapped to VectorL (0, 1)

Convert an Array [TimeNum] into an Array [Long] by mapping each distinct value in Array [TimeNum] into a distinct numeric integer value, returning the new vector and the bidirectional mapping. Use the from method in BiMap to recover the original TimeNum. e.g., VectorT (_0, _1) will be mapped to VectorL (0, 1)

Value parameters

a

the array of time-numbers to be converted

Attributes

def one(n: Int): VectorT

Create a one vector (all elements are one) of length n.

Create a one vector (all elements are one) of length n.

Value parameters

size

the size of the new vector

Attributes

def oneAt(j: Int, size: Int): VectorT

Create a vector of the form (0, ... 1, ... 0) where the 1 is at position j.

Create a vector of the form (0, ... 1, ... 0) where the 1 is at position j.

Value parameters

j

the position to place the 1

size

the size of the vector (upper bound = size - 1)

Attributes

Concrete fields

val nullv: VectorT

Create a null vector of type VectorT.

Create a null vector of type VectorT.

Attributes