dbStat
Class ClusterDriver

java.lang.Object
  extended bydbStat.ClusterDriver

public class ClusterDriver
extends java.lang.Object

Class that runs the k-means clustering algorithm.

The necessary functionality is to query the database for the statistical information, load that into data structures suitable for comparing vectors to each other, and run the actual clustering algorithm itself.


Field Summary
private  java.util.ArrayList attributeVectors
          The collection of AttributeVectors which are vectors of statistical values for each individual stock in the stockstat table.
 
Constructor Summary
ClusterDriver()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void runClusterDriver()
          Main function to invoke to drive the functionality of the ClusterDriver class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributeVectors

private java.util.ArrayList attributeVectors
The collection of AttributeVectors which are vectors of statistical values for each individual stock in the stockstat table.

Constructor Detail

ClusterDriver

public ClusterDriver()
Method Detail

runClusterDriver

public void runClusterDriver()
Main function to invoke to drive the functionality of the ClusterDriver class.

First it fetches all the statistics information from the database and stores them in a local data structure. Then the data vectors are normalized (the individual values are normalized)


main

public static void main(java.lang.String[] args)