Packages

object VectorD extends Serializable

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

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VectorD
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def ++(b: Double, u: VectorD): VectorD

    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

  2. def apply(xs: Array[String], skip: Int): VectorD

    Create a VectorD from an array of Strings, skipping the first 'skip' elements.

    Create a VectorD 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)

  3. def apply(xs: Array[String]): VectorD

    Create a VectorD from an array of Strings.

    Create a VectorD from an array of Strings.

    xs

    the array of the Strings

  4. def apply(x: String, xs: String*): VectorD

    Create a VectorD from one or more values (repeated values String*).

    Create a VectorD from one or more values (repeated values String*).

    x

    the first String

    xs

    the rest of the Strings

  5. def apply(xs: Seq[Double]): VectorD

    Create a VectorD from a sequence of Doubles.

    Create a VectorD from a sequence of Doubles.

    xs

    the sequence of the Double numbers

  6. def apply(x: Double, xs: Double*): VectorD

    Create a VectorD from one or more values (repeated values Double*).

    Create a VectorD from one or more values (repeated values Double*).

    x

    the first Double number

    xs

    the rest of the Double numbers

  7. def one(size: Int): VectorD

    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

  8. def range(start: Int, end: Int): VectorD

    Return a VectorD containing a sequence of increasing integers in a range.

    Return a VectorD 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)