org.apache.spark.mllib.stat

MultivariateOnlineSummarizer

class MultivariateOnlineSummarizer extends MultivariateStatisticalSummary with Serializable

:: DeveloperApi :: MultivariateOnlineSummarizer implements MultivariateStatisticalSummary to compute the mean, variance, minimum, maximum, counts, and nonzero counts for samples in sparse or dense vector format in a online fashion.

Two MultivariateOnlineSummarizer can be merged together to have a statistical summary of the corresponding joint dataset.

A numerically stable algorithm is implemented to compute sample mean and variance: Reference: variance-wiki Zero elements (including explicit zero values) are skipped when calling add(), to have time complexity O(nnz) instead of O(n) for each column.

Annotations
@DeveloperApi()
Linear Supertypes
Serializable, Serializable, MultivariateStatisticalSummary, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MultivariateOnlineSummarizer
  2. Serializable
  3. Serializable
  4. MultivariateStatisticalSummary
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MultivariateOnlineSummarizer()

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. def add(sample: Vector): MultivariateOnlineSummarizer.this.type

    Add a new sample to this summarizer, and update the statistical summary.

    Add a new sample to this summarizer, and update the statistical summary.

    sample

    The sample in dense/sparse vector format to be added into this summarizer.

    returns

    This MultivariateOnlineSummarizer object.

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def count: Long

    Sample size.

  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. def max: Vector

    Maximum value of each column.

    Maximum value of each column.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
  15. def mean: Vector

    Sample mean vector.

    Sample mean vector.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
  16. def merge(other: MultivariateOnlineSummarizer): MultivariateOnlineSummarizer.this.type

    Merge another MultivariateOnlineSummarizer, and update the statistical summary.

    Merge another MultivariateOnlineSummarizer, and update the statistical summary. (Note that it's in place merging; as a result, this object will be modified.)

    other

    The other MultivariateOnlineSummarizer to be merged.

    returns

    This MultivariateOnlineSummarizer object.

  17. def min: Vector

    Minimum value of each column.

    Minimum value of each column.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. def normL1: Vector

    L1 norm of each column

    L1 norm of each column

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
  20. def normL2: Vector

    Euclidean magnitude of each column

    Euclidean magnitude of each column

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
  21. final def notify(): Unit

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

    Definition Classes
    AnyRef
  23. def numNonzeros: Vector

    Number of nonzero elements (including explicitly presented zero values) in each column.

    Number of nonzero elements (including explicitly presented zero values) in each column.

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

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. def variance: Vector

    Sample variance vector.

    Sample variance vector. Should return a zero vector if the sample size is 1.

    Definition Classes
    MultivariateOnlineSummarizerMultivariateStatisticalSummary
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped