fozziethebeat/S-Space — pull request #6 by fozziethebeat (2011-10-13 20:53:53+00:00)
Title: Affinity update

This has already been commited to the master by accident. Note, don't do git push origin master from a branch.

This turns static utility classes into interfaces to simplify the creation of new implementations. This includes:
- Similarity methods. edu.ucla.edu.sspace.sim contains all the implementations. This also includes kernel methods that were previously in the AffinityMatrixCreator
- AffinityMatrixCreator is now an interface with two implementations, one for K-nearest neighbors and one for the minimum similarity threshold.

This also includes an update to the WorkQueue to enforce a limited number of threads used throughout an application. (this change has been undone in the master since it may affect other codes significantly).

Also, LPP based codes that used the AffinityMatrixCreator now use the interface and a wrapper around LinkClustering is included that builds an affinity matrix from a data matrix automatically (This was the main reason for making these changes).