org.apache.spark.streamdm.core

DenseInstance

case class DenseInstance(inVector: Array[Double]) extends Instance with Serializable with Product

A DenseInstance is an Instance in which the features are dense, i.e., there exists a value for (almost) every feature. The DenseInstance will keep an Array of the values and the corresponding operations will be based on this data structure.

Linear Supertypes
Product, Equals, Instance, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DenseInstance
  2. Product
  3. Equals
  4. Instance
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DenseInstance(inVector: Array[Double])

Type Members

  1. type T = DenseInstance

    Definition Classes
    DenseInstanceInstance

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def add(input: Instance): DenseInstance

    Perform an element by element addition between two instances

    Perform an element by element addition between two instances

    input

    an Instance which is added up

    returns

    an Instance representing the added Instances

    Definition Classes
    DenseInstanceInstance
  7. def apply(index: Int): Double

    Get the value present at position index

    Get the value present at position index

    index

    the index of the features

    returns

    a Double representing the feature value, or 0 if the index is not present in the underlying data structure

    Definition Classes
    DenseInstanceInstance
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def distanceTo(input: Instance): Double

    Compute the Euclidean distance to another Instance

    Compute the Euclidean distance to another Instance

    input

    the Instance to which the distance is computed

    returns

    a Double representing the distance value

    Definition Classes
    DenseInstanceInstance
  11. def dot(input: Instance): Double

    Perform a dot product between two instances

    Perform a dot product between two instances

    input

    an Instance with which the dot product is performed

    returns

    a Double representing the dot product

    Definition Classes
    DenseInstanceInstance
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. val features: Array[Double]

  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def getFeatureIndexArray(): Array[(Double, Int)]

    Return an array of features and indexes

    Return an array of features and indexes

    returns

    an array of turple2(value,index)

    Definition Classes
    DenseInstanceInstance
  17. def hadamard(input: Instance): DenseInstance

    Perform an element by element multiplication between two instances

    Perform an element by element multiplication between two instances

    input

    an Instance which is multiplied

    returns

    an Instance representing the Hadamard product

    Definition Classes
    DenseInstanceInstance
  18. val inVector: Array[Double]

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def map(func: (Double) ⇒ Double): DenseInstance

    Apply an operation to every feature of the Instance

    Apply an operation to every feature of the Instance

    func

    the function for the transformation

    returns

    a new Instance with the transformed features

    Definition Classes
    DenseInstanceInstance
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def reduce(func: (Double, Double) ⇒ Double): Double

    Aggregate the values of an instance

    Aggregate the values of an instance

    func

    the function for the transformation

    returns

    the aggregated value

    Definition Classes
    DenseInstanceInstance
  25. def set(index: Int, input: Double): DenseInstance

    Add a feature to the instance

    Add a feature to the instance

    index

    the index at which the value is added

    input

    the feature value which is added up

    returns

    an Instance representing the new feature vector

    Definition Classes
    DenseInstanceInstance
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

    Definition Classes
    DenseInstance → AnyRef → Any
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from Instance

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped