object SparseVectorI extends Serializable
The SparseVectorI
object is the companion object for the SparseVectorI
class.
- Alphabetic
- By Inheritance
- SparseVectorI
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type RowMap = TreeMap[Int, Int]
Shorthand type definition for sparse vector
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(b: Int, u: SparseVectorI): SparseVectorI
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
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(xs: Array[String], skip: Int): SparseVectorI
Create a
SparseVectorI
from an array ofString
s, skipping the first 'skip' elements.Create a
SparseVectorI
from an array ofString
s, skipping the first 'skip' elements. If an element is non-numeric, use its hashcode. FIX: Might be better to map non-numericString
s to ordinal values.- xs
the array of the
String
s- skip
the number of elements at the beginning to skip (e.g., id column)
- def apply(xs: Array[String]): SparseVectorI
Create a
SparseVectorI
from an array ofString
s.Create a
SparseVectorI
from an array ofString
s.- xs
the array of the
String
s
- def apply(x: String, xs: String*): SparseVectorI
Create a
SparseVectorI
from one or more values (repeated valuesString
*).Create a
SparseVectorI
from one or more values (repeated valuesString
*).- x
the first
String
- xs
the rest of the
String
s
- def apply(xs: Array[Int]): SparseVectorI
Create a
SparseVectorI
from a sequence ofInt
s.Create a
SparseVectorI
from a sequence ofInt
s.- xs
the sequence of the Int numbers
- def apply(xs: Seq[Int]): SparseVectorI
Create a
SparseVectorI
from a sequence ofInt
s.Create a
SparseVectorI
from a sequence ofInt
s.- xs
the sequence of the Int numbers
- def apply(x: Int, xs: Int*): SparseVectorI
Create a
SparseVectorI
from one or more values (repeated valuesInt
*).Create a
SparseVectorI
from one or more values (repeated valuesInt
*).- x
the first
Int
number- xs
the rest of the
Int
numbers
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- 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
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def range(start: Int, end: Int): SparseVectorI
Return a
SparseVectorI
containing a sequence of increasing integers in a range.Return a
SparseVectorI
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)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated