org.apache.spark.streamdm.streams.generators

SphereCluster

class SphereCluster extends Cluster

A class for defining a kind of MicroCluster

Linear Supertypes
Cluster, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SphereCluster
  2. Cluster
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SphereCluster(dimensions: Int, radius: Double, random: Random)

  2. new SphereCluster(center: Array[Double], radius: Double)

  3. new SphereCluster(center: Array[Double], radius: Double, weightedSize: Double)

  4. new SphereCluster()

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 Cluster(): Unit

    Definition Classes
    Cluster
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def combine(cluster: SphereCluster): Unit

  10. def distance(v1: Array[Double], v2: Array[Double]): Double

  11. def distanceVector(v1: Array[Double], v2: Array[Double]): Array[Double]

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def getCenter(): Array[Double]

    returns

    the center of the cluster

    Definition Classes
    SphereClusterCluster
    Annotations
    @Override()
  16. def getCenterDistance(other: SphereCluster): Double

  17. def getCenterDistance(instance: Instance): Double

  18. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  19. def getDistanceVector(other: SphereCluster): Array[Double]

  20. def getGroundTruth(): Double

    Definition Classes
    Cluster
  21. def getHullDistance(other: SphereCluster): Double

  22. def getId(): Double

    Definition Classes
    Cluster
  23. def getInclusionProbability(instance: Instance): Double

    Returns the probability of the given point belonging to this cluster.

    Returns the probability of the given point belonging to this cluster.

    returns

    a value between 0 and 1

    Definition Classes
    SphereClusterCluster
    Annotations
    @Override()
  24. def getMeasureValue(measureKey: String): String

    Definition Classes
    Cluster
  25. def getRadius(): Double

  26. def getWeight(): Double

    Returns the weight of this cluster, not neccessarily normalized.

    Returns the weight of this cluster, not neccessarily normalized. It could, for instance, simply return the number of points contined in this cluster.

    returns

    the weight

    Definition Classes
    SphereClusterCluster
    Annotations
    @Override()
  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. def isGroundTruth(): Boolean

    Definition Classes
    Cluster
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def merge(cluster: SphereCluster): Unit

  31. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  34. def overlapRadiusDegree(other: SphereCluster): Double

    Checks whether two SphereCluster overlap based on radius NOTE: overlapRadiusDegree only calculates the overlap based on the centers and the radi, so not the real overlap

    Checks whether two SphereCluster overlap based on radius NOTE: overlapRadiusDegree only calculates the overlap based on the centers and the radi, so not the real overlap

  35. def overlapSave(other: SphereCluster): Boolean

    When a clusters looses points the new minimal bounding sphere can be partly outside of the originating cluster.

    When a clusters looses points the new minimal bounding sphere can be partly outside of the originating cluster. If a another cluster is right next to the original cluster (without overlapping), the new cluster can be overlapping with this second cluster. OverlapSave will tell you if the current cluster can degenerate so much that it overlaps with cluster 'other'

    other

    the potentially overlapping cluster

    returns

    true if cluster can potentially overlap

  36. def sample(random: Random): Instance

    Samples this cluster by returning a point from inside it.

    Samples this cluster by returning a point from inside it.

    random

    a random number source

    returns

    a point that lies inside this cluster

    Definition Classes
    SphereClusterCluster
  37. def setCenter(center: Array[Double]): Unit

  38. def setGroundTruth(truth: Double): Unit

    Definition Classes
    Cluster
  39. def setId(id: Double): Unit

    Definition Classes
    Cluster
  40. def setMeasureValue(measureKey: String, value: Double): Unit

    Definition Classes
    Cluster
  41. def setMeasureValue(measureKey: String, value: String): Unit

    Definition Classes
    Cluster
  42. def setRadius(radius: Double): Unit

  43. def setWeight(weight: Double): Unit

  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  45. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Cluster

Inherited from AnyRef

Inherited from Any

Ungrouped