object Vec
The Vec
object provides a minimal set of functions that apply across all
types of ScalaTion linalgebra
vectors.
- See also
scalation.columnar_db.Relation
- Alphabetic
- By Inheritance
- Vec
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++(x: Vec, y: Vec): Vec
Concatenate vectors 'x' and 'y'.
Concatenate vectors 'x' and 'y'.
- x
the first vector
- y
the second vector
-
def
:+[T](x: Vec, s: T): Vec
Copy of vector 'x' with scalar 's' appended.
Copy of vector 'x' with scalar 's' appended. FIX - different in Yang Fan's code.
- x
the vector
- s
the scalar to append
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(x: Vec, iv: VectoI): Vec
Return the 'iv' elements of vector 'x'.
Return the 'iv' elements of vector 'x'.
- x
the vector to access
- iv
the index positions
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filter[T](x: Vec, p: (T) ⇒ Boolean)(implicit arg0: ClassTag[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
-
def
filterMissing(x: Vec): Vec
Filter out missing values from vector 'x'.
Filter out missing values from vector 'x'.
- x
the vector to filter
-
def
filterPos[T](x: Vec, p: (T) ⇒ Boolean)(implicit arg0: ClassTag[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
-
def
fromDouble(x: Vec, dd: Any): Any
Convert a double to a value of specific type based on the provided vector.
Convert a double to a value of specific type based on the provided vector.
- x
the vector whose element type is of interest
- dd
the double to be converted
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
max(x: Vec): Any
Compute the maximum of vector 'x'.
Compute the maximum of vector 'x'.
- x
the vector whose max is sought
-
def
mean(x: Vec): Any
Compute the mean of vector 'x'.
Compute the mean of vector 'x'.
- x
the vector whose mean is sought
-
def
min(x: Vec): Any
Compute the minimum of vector 'x'.
Compute the minimum of vector 'x'.
- x
the vector whose min is sought
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
noValue(x: Vec): Any
Return the appropriate missing value that is compatible with vector 'x'.
Return the appropriate missing value that is compatible with vector 'x'.
- x
the vector whose base type is of interest
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
-
def
sum(x: Vec): Any
Compute the sum of vector 'x'.
Compute the sum of vector 'x'.
- x
the vector whose sum is sought
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toDense(x: Vec): Vec
Convert compressed RleVector to dense Vector.
Convert compressed RleVector to dense Vector. FIX - RleVectorT to be implemented
- x
the vector to convert
-
def
toDouble(x: Vec): VectoD
Convert a vector of a different type to
VectorD
.Convert a vector of a different type to
VectorD
.- x
the vector to convert
-
def
toInt(x: Vec): VectoI
Convert a vector of a different type to
VectorI
.Convert a vector of a different type to
VectorI
.- x
the vector to convert
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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
-
def
variance(x: Vec): Any
Compute the variance of vector 'x'.
Compute the variance of vector 'x'.
- x
the vector whose variance is sought
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated