Packages

object Vec

The Vec object provides a minimal set of functions that apply across all types of vectors.

See also

scalation.columnar_db.Relation

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Vec
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def ++(x: Vec, y: Vec): Vec

    Concatenate vectors 'x' and 'y'.

    Concatenate vectors 'x' and 'y'.

    x

    the first vector

    y

    the second vector

  4. def :+[T](x: Vec, s: T): Vec

    Copy of vector 'x' with scalar 's' appended.

    Copy of vector 'x' with scalar 's' appended.

    x

    the vector

    s

    the scalar to append

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def apply(x: Vec, iv: VectoI): Vec

    Return the 'i'th element of vector 'x'.

    Return the 'i'th element of vector 'x'.

    x

    the vector to access

  7. def apply(x: Vec, i: Int): Any

    Return the 'i'th element of vector 'x'.

    Return the 'i'th element of vector 'x'.

    x

    the vector to access

    i

    the index position

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  10. def corr(x: Vec, y: Vec): Double

    Compute the correlation between vectors 'x' and 'y'.

    Compute the correlation between vectors 'x' and 'y'.

    x

    the first vector

    y

    the second vector

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def filter[T](x: Vec, p: (T) ⇒ Boolean)(implicit arg0: ClassTag[T], arg1: Numeric[T]): Vec

    Filter vector 'x' based on predicate 'p', returning a new vector.

    Filter vector 'x' based on predicate 'p', returning a new vector.

    x

    the vector to filter

    p

    the predicate ('Boolean' function) to apply

  14. def filterPos[T](x: Vec, p: (T) ⇒ Boolean)(implicit arg0: ClassTag[T], arg1: Numeric[T]): Seq[Int]

    Filter vector 'x' based on predicate 'p', returning the positions in the vector.

    Filter vector 'x' based on predicate 'p', returning the positions in the vector.

    x

    the vector to filter

    p

    the predicate ('Boolean' function) to apply

  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def max(x: Vec): Any

    Compute the maximum of vector 'x'.

    Compute the maximum of vector 'x'.

    x

    the vector whose max is sought

  20. def mean(x: Vec): Any

    Compute the mean of vector 'x'.

    Compute the mean of vector 'x'.

    x

    the vector whose mean is sought

  21. def min(x: Vec): Any

    Compute the minimum of vector 'x'.

    Compute the minimum of vector 'x'.

    x

    the vector whose min is sought

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def select(x: Vec, pos: Seq[Int]): Vec

    Select elements from vector 'x' at the given index positions.

    Select elements from vector 'x' at the given index positions.

    x

    the vector to select from

    pos

    the positions to select

  26. def sum(x: Vec): Any

    Compute the sum of vector 'x'.

    Compute the sum of vector 'x'.

    x

    the vector whose sum is sought

  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toDouble(x: Vec): VectorD

    Convert a vector of a different type to VectorD.

    Convert a vector of a different type to VectorD.

    x

    the vector to convert

  29. def toInt(x: Vec): VectorI

    Convert a vector of a different type to VectorI.

    Convert a vector of a different type to VectorI.

    x

    the vector to convert

  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def update[T](x: Vec, i: Int, s: T): Unit

    Update the 'i'th element of vector 'x'.

    Update the 'i'th element of vector 'x'.

    x

    the vector to update

    i

    the index position

    s

    the scalar to assign

  32. def variance(x: Vec): Any

    Compute the variance of vector 'x'.

    Compute the variance of vector 'x'.

    x

    the vector whose variance is sought

  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped