Class

clustering4ever.scala.clustering

KCommonsScala

Related Doc: package clustering

Permalink

abstract class KCommonsScala[ID, V, D <: Distance[V], Cz <: Clusterizable[ID, V]] extends KCommons[ID, V, D]

Linear Supertypes
KCommons[ID, V, D], ClusteringAlgorithms[ID], Serializable, Serializable, DataSetsTypes[ID], ClusteringCommons, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KCommonsScala
  2. KCommons
  3. ClusteringAlgorithms
  4. Serializable
  5. Serializable
  6. DataSetsTypes
  7. ClusteringCommons
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new KCommonsScala(data: GenSeq[Cz], metric: D, k: Int, initializedCenters: HashMap[Int, V] = mutable.HashMap.empty[Int, V])(implicit arg0: Numeric[ID])

    Permalink

Type Members

  1. type ClusterID = Int

    Permalink
    Definition Classes
    ClusteringCommons
  2. type ID = ID

    Permalink
    Definition Classes
    DataSetsTypes

Abstract Value Members

  1. abstract def run(): ClusteringModel

    Permalink
    Definition Classes
    ClusteringAlgorithms

Concrete 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. val centers: HashMap[Int, V]

    Permalink
  7. val centersCardinality: HashMap[Int, Int]

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def clusterizedAndSaveCenters(vectorizedDataset: GenSeq[V], centers: HashMap[Int, V]): (GenSeq[(V, Int)], HashMap[Int, V])

    Permalink

    Attributes
    protected
    Definition Classes
    KCommons
  10. def clusterizedAndSaveCentersWithResetingCentersCardinalities(centers: HashMap[Int, V], centersCardinality: HashMap[Int, Int]): (GenSeq[(V, Int)], HashMap[Int, V])

    Permalink
    Attributes
    protected
  11. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  17. lazy val kmppInitialization: (GenSeq[V], Int) ⇒ HashMap[Int, V]

    Permalink

    Kmeans++ initialization

    Kmeans++ initialization

    References

    • Tapas Kanungo, David M. Mount, Nathan S. Netanyahu, Christine D. Piatko, Ruth Silverman, and Angela Y. Wu. An Efficient k-Means Clustering Algorithm: Analysis and Implementation. IEEE TRANS. PAMI, 2002.
    • D. Arthur and S. Vassilvitskii. "K-means++: the advantages of careful seeding". ACM-SIAM symposium on Discrete algorithms, 1027-1035, 2007.
    • Anna D. Peterson, Arka P. Ghosh and Ranjan Maitra. A systematic evaluation of different methods for initializing the K-means clustering algorithm. 2010.
    Definition Classes
    KCommons
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def obtainMedoid(gs: GenSeq[V]): V

    Permalink

    Compute the similarity matrix and extract point which is the closest from all other point according to its dissimilarity measure

    Compute the similarity matrix and extract point which is the closest from all other point according to its dissimilarity measure

    Attributes
    protected
    Definition Classes
    KCommons
  22. def obtainNearestCenterID(v: V, centers: HashMap[Int, V]): ClusterID

    Permalink

    Attributes
    protected
    Definition Classes
    KCommons
  23. 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
  24. def removeEmptyClustersAndCheckIfallCentersHaveConverged(centers: HashMap[Int, V], kCentersBeforeUpdate: HashMap[Int, V], centersCardinality: HashMap[Int, Int], epsilon: Double): Boolean

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

    Permalink

    Reinitialization of cardinalities

    Reinitialization of cardinalities

    Attributes
    protected
    Definition Classes
    KCommons
  26. def runKAlgorithmWithCustomMetric(maxIterations: Int, epsilon: Double): Unit

    Permalink
    Attributes
    protected
  27. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  29. def updateCentersAndCardinalitiesCustom(clusterized: GenSeq[(V, Int)], centers: HashMap[Int, V], centersCardinality: HashMap[Int, Int]): Unit

    Permalink

    Update Center and Cardinalities

    Update Center and Cardinalities

    Attributes
    protected
  30. val vectorizedDataset: GenSeq[V]

    Permalink
  31. final def wait(): Unit

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

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

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

Inherited from KCommons[ID, V, D]

Inherited from ClusteringAlgorithms[ID]

Inherited from Serializable

Inherited from Serializable

Inherited from DataSetsTypes[ID]

Inherited from ClusteringCommons

Inherited from AnyRef

Inherited from Any

Ungrouped