org.apache.spark.streamdm.core

NullInstance

case class NullInstance() extends Instance with Serializable with Product

A NullInstance is an Instance which does not contain anything in it. It is present to aid the design of Example, and to allow cases when we have instances which do not have output values. Every operation on a NullInstance with either return a NullInstance or a value of 0.

Linear Supertypes
Product, Equals, Instance, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NullInstance
  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 NullInstance()

Type Members

  1. type T = NullInstance

    Definition Classes
    NullInstanceInstance

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): NullInstance

    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

    a NullInstance

    Definition Classes
    NullInstanceInstance
  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
    NullInstanceInstance
  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

    an infinite distance (implemented as Double.MaxValue)

    Definition Classes
    NullInstanceInstance
  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
    NullInstanceInstance
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  15. 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
    NullInstanceInstance
  16. def hadamard(input: Instance): NullInstance

    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

    a NullInstance

    Definition Classes
    NullInstanceInstance
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def map(func: (Double) ⇒ Double): NullInstance

    Apply an operation to every feature of a NullInstance

    Apply an operation to every feature of a NullInstance

    func

    the function for the transformation

    returns

    a NullInstance

    Definition Classes
    NullInstanceInstance
  19. final def ne(arg0: AnyRef): Boolean

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

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

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

    Aggregate the values of a NullInstance

    Aggregate the values of a NullInstance

    func

    the function for the transformation

    returns

    a value of 0

    Definition Classes
    NullInstanceInstance
  23. def set(index: Int, input: Double): NullInstance

    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

    a NullInstance

    Definition Classes
    NullInstanceInstance
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    NullInstance → AnyRef → Any
  26. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. 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