class TightClusterer extends AnyRef
The TightClusterer
class uses tight clustering to eliminate points that
do not not fit well in any cluster.
- Alphabetic
- By Inheritance
- TightClusterer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
TightClusterer(x: MatrixD, k0: Int, kmin: Int, s: Int = 0)
- x
the vectors/points to be clustered stored as rows of a matrix
- k0
the number of clusters to make
- kmin
the minimum number of clusters to make
- s
the random number stream (to vary the clusters made)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
cluster(): ArrayBuffer[Set[Int]]
Given a set of points/vectors, put them in clusters, returning the cluster assignment vector.
Given a set of points/vectors, put them in clusters, returning the cluster assignment vector. A basic goal is to minimize the sum of the distances between points within each cluster.
-
def
computeMeanComembership(k: Int): MatrixD
Compute the mean comembership matrix by averaging results from several subsamples.
-
def
createSubsample(): (MatrixD, Array[Int])
Create a new random subsample.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
findStable(topClubs: Array[ArrayBuffer[Set[Int]]]): (Int, Set[Int])
Find a the first tight and stable cluster from the top candidate clubs.
Find a the first tight and stable cluster from the top candidate clubs. To be stable, a club must have a similar club at the next level (next k value).
- topClubs
the top clubs for each level to be search for stable clusters
-
def
formCandidateClusters(md: MatrixD): ArrayBuffer[Set[Int]]
Form candidate clusters by collecting points with high average comembership scores together in clusters (clubs).
Form candidate clusters by collecting points with high average comembership scores together in clusters (clubs).
- md
the mean comembership matrix
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
orderBySize(clubs: ArrayBuffer[Set[Int]]): Array[Int]
Order the clubs (candidate clusters) by size, returning the rank order (largest first).
Order the clubs (candidate clusters) by size, returning the rank order (largest first).
- clubs
the candidate clusters
-
def
pickTopQ(clubs: ArrayBuffer[Set[Int]], order: Array[Int]): ArrayBuffer[Set[Int]]
Pick the top q clubs based on club size.
Pick the top q clubs based on club size.
- clubs
all the clubs (candidate clusters)
- order
the rank order (by club size) of all the clubs
-
def
selectCandidateClusters(k: Int): (ArrayBuffer[Set[Int]], Array[Int])
Select candidates for tight clusters in the K-means algorithm for a given number of clusters 'k'.
Select candidates for tight clusters in the K-means algorithm for a given number of clusters 'k'. This corresponds to Algorithm A in the paper/URL.
- k
the number of clusters
-
def
sim(c1: Set[Int], c2: Set[Int]): Double
Compute the similarity of two clubs as the ratio of the size of their intersection to their union.
Compute the similarity of two clubs as the ratio of the size of their intersection to their union.
- c1
the first club
- c2
the second club
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated