|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpitt.search.semanticvectors.ClusterVectorStore
public class ClusterVectorStore
This class is used for performing kMeans clustering on an entire vector store. It presumes thae the vector store to be clustered is represented in a file in text format (since it's unlikely that you'd want to try this on large files anyway.
ClusterResults
Constructor Summary | |
---|---|
ClusterVectorStore()
|
Method Summary | |
---|---|
static void |
clusterOverlapMeasure(int[] clusterIDs,
ObjectVector[] vectors)
|
static java.lang.String |
getBookFromPath(java.lang.String path)
Small utility for work with the Bible. |
static java.lang.String[] |
getCluster(int ID,
int[] clusterIDs,
java.lang.String[] names)
|
static int |
getMaxValue(int[] values)
|
static void |
main(java.lang.String[] args)
Takes a number of clusters and a vector store (presumed to be text format) as arguments and prints out clusters. |
static void |
usage()
Prints the following usage message:
ClusterVectorStore class for clustering an entire (text) vector store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterVectorStore()
Method Detail |
---|
public static void usage()
ClusterVectorStore class for clustering an entire (text) vector store.
Usage: java.pitt.search.semanticvectors.ClusterVectorStore VECTORFILE
Use --numclusters to change the number of clusters.
Do not try this for large vector stores, it will not scale well!
public static java.lang.String getBookFromPath(java.lang.String path)
public static int getMaxValue(int[] values)
public static java.lang.String[] getCluster(int ID, int[] clusterIDs, java.lang.String[] names)
public static void clusterOverlapMeasure(int[] clusterIDs, ObjectVector[] vectors)
public static void main(java.lang.String[] args) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |