Class/Object

org.clustering4ever.scala.clustering.kcenters

KCenters

Related Docs: object KCenters | package kcenters

Permalink

class KCenters[ID, O, V, Cz <: Clusterizable[ID, O, V, Cz], D <: Distance[V]] extends KCommons[ID, O, V, Cz, D] with LocalClusteringAlgorithm[GenSeq[Cz]]

The famous K-Centers using a user-defined dissmilarity measure.

Linear Supertypes
LocalClusteringAlgorithm[GenSeq[Cz]], ClusteringAlgorithmExt[GenSeq[Cz]], ClusteringAlgorithm, KCommons[ID, O, V, Cz, D], ClusteringCommons, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KCenters
  2. LocalClusteringAlgorithm
  3. ClusteringAlgorithmExt
  4. ClusteringAlgorithm
  5. KCommons
  6. ClusteringCommons
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KCenters(k: Int, epsilon: Double, maxIterations: Int, metric: D, initializedCenters: HashMap[Int, V] = mutable.HashMap.empty[Int, V])(implicit arg0: Numeric[ID], arg1: ClassTag[V])

    Permalink

    k

    : number of clusters

    epsilon

    : minimal threshold under which we consider a centroid has converged

    maxIterations

    : maximal number of iteration

    metric

    : a defined dissimilarity measure

Type Members

  1. type ClusterID = Int

    Permalink
    Definition Classes
    ClusteringCommons

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def areCentersMovingEnough(kCentersBeforeUpdate: HashMap[Int, V], centers: HashMap[Int, V], epsilon: Double): Boolean

    Permalink

    Check if centers move enough

    Check if centers move enough

    returns

    true if every centers move less than epsilon

    Attributes
    protected
    Definition Classes
    KCommons
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def obtainNearestCenterID(v: V, centers: HashMap[Int, V]): ClusterID

    Permalink

    Attributes
    protected
    Definition Classes
    KCommons
  17. def removeEmptyClusters(centers: HashMap[Int, V], kCentersBeforeUpdate: HashMap[Int, V], centersCardinality: HashMap[Int, Int]): Unit

    Permalink

    Check if there are empty centers and remove them

    Check if there are empty centers and remove them

    Attributes
    protected
    Definition Classes
    KCommons
  18. def resetCentersCardinality(centersCardinality: HashMap[Int, Int]): Unit

    Permalink

    Reinitialization of cardinalities

    Reinitialization of cardinalities

    Attributes
    protected
    Definition Classes
    KCommons
  19. def run(data: GenSeq[Cz])(workingVector: Int = 0): KCentersModel[ID, O, V, Cz, D]

    Permalink

    Run the K-Centers

    Run the K-Centers

    Definition Classes
    KCenters → ClusteringAlgorithmExt
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LocalClusteringAlgorithm[GenSeq[Cz]]

Inherited from ClusteringAlgorithmExt[GenSeq[Cz]]

Inherited from ClusteringAlgorithm

Inherited from KCommons[ID, O, V, Cz, D]

Inherited from ClusteringCommons

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped