object VectorR extends Serializable
The VectorR
object is the companion object for the VectorR
class.
- Alphabetic
- By Inheritance
- VectorR
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
++(b: Real, u: VectorR): VectorR
Concatenate scalar 'b' and vector 'u'.
Concatenate scalar 'b' and vector 'u'.
- b
the scalar to be concatenated - first part
- u
the vector to be concatenated - second part
-
def
apply(xs: Array[String], skip: Int): VectorR
Create a
VectorR
from an array of Strings, skipping the first 'skip' elements.Create a
VectorR
from an array of Strings, skipping the first 'skip' elements. If an element is non-numeric, use its hashcode. FIX: Might be better to map non-numeric Strings to ordinal values.- xs
the array of the Strings
- skip
the number of elements at the beginning to skip (e.g., id column)
-
def
apply(xs: Array[String]): VectorR
Create a
VectorR
from an array of Strings.Create a
VectorR
from an array of Strings.- xs
the array of the Strings
-
def
apply(x: String, xs: String*): VectorR
Create a
VectorR
from one or more values (repeated values String*).Create a
VectorR
from one or more values (repeated values String*).- x
the first String
- xs
the rest of the Strings
-
def
apply(xs: Seq[Real]): VectorR
Create a
VectorR
from a sequence of Reals.Create a
VectorR
from a sequence of Reals.- xs
the sequence of the Real numbers
-
def
apply(x: Real, xs: Real*): VectorR
Create a
VectorR
from one or more values (repeated values Real*).Create a
VectorR
from one or more values (repeated values Real*).- x
the first Real number
- xs
the rest of the Real numbers
-
def
one(size: Int): VectorR
Create a one vector (all elements are one) of length 'size'.
Create a one vector (all elements are one) of length 'size'.
- size
the size of the vector
-
def
range(start: Int, end: Int): VectorR
Return a
VectorR
containing a sequence of increasing integers in a range.Return a
VectorR
containing a sequence of increasing integers in a range.- start
the start value of the vector, inclusive
- end
the end value of the vector, exclusive (i.e., the first value not returned)