The VectorD object is the companion object for the VectorD class.
Attributes
Members list
Value members
Concrete methods
Create a VectorD from an immutable indexed sequence of Doubles.
Create a VectorD from an immutable indexed sequence of Doubles.
Value parameters
- xs
-
the sequence/array of the
Doublenumbers
Attributes
Create a VectorD from a mutable indexed sequence of Doubles.
Create a VectorD from a mutable indexed sequence of Doubles.
Value parameters
- xs
-
the sequence/array of the
Doublenumbers
Attributes
Create a VectorD from an aeeay of Doubles.
Create a VectorD from an aeeay of Doubles.
Value parameters
- xs
-
the sequence/array of the
Doublenumbers
Attributes
Create a VectorD from one or more values (repeated values Double*).
Create a VectorD from one or more values (repeated values Double*).
Value parameters
- x
-
the first
Doublenumber - xs
-
the varargs of
Doublenumbers
Attributes
Create a VectorD from one or more values (repeated values String*). For numeric types, assign missing value indicator upon format failure.
Create a VectorD 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
Create a VectorD with n elements and fill it with the value x.
Create a VectorD 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
Create a VectorD from a mutable indexed sequence of String.
Create a VectorD from a mutable indexed sequence of String.
Value parameters
- xs
-
the sequence/array of the
Stringnumbers
Attributes
Create a VectorD from a mutable indexed sequence of TimeNum. FIX - for numeric types, assign missing value indicator upon format failure.
Create a VectorD from a mutable indexed sequence of TimeNum. FIX - for numeric types, assign missing value indicator upon format failure.
Value parameters
- xs
-
the sequence/array of the
TimeNumnumbers
Attributes
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
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
Return a VectorD consisting of a sequence of increasing integers in a range. VectorD (for i <- r yield i.toDouble)
Return a VectorD consisting of a sequence of increasing integers in a range. VectorD (for i <- r yield i.toDouble)
Value parameters
- r
-
the range of values
Attributes
Return a VectorD consisting of a sequence of increasing integers in a range. Usage: VectorD.range (1, 4) = (1, 2, 3)
Return a VectorD consisting of a sequence of increasing integers in a range. Usage: VectorD.range (1, 4) = (1, 2, 3)
Value parameters
- end
-
the end of range (exclusive)
- start
-
the start of range (inclusive)