edu.georgetown.gucs.clustering
Class ClusteringExperiment

java.lang.Object
  extended by edu.georgetown.gucs.clustering.ClusteringExperiment

public class ClusteringExperiment
extends java.lang.Object


Field Summary
protected  boolean debug
           
protected  CosineSimilarityFingerprintMatcher distanceFunction
          the distance function used.
protected  java.lang.String filestem
           
protected  byte[][] instances
           
protected  double p1
           
protected  double p2
           
protected  double pDecrement
           
protected  java.util.Random random
           
protected  Stats stats
           
 
Constructor Summary
ClusteringExperiment(java.lang.String filestem)
           
 
Method Summary
 int findClosestInstance(byte[] query, byte[][] train)
           
static void main(java.lang.String[] args)
           
 void run(int iterations)
           
 void setDebug(boolean debug)
           
 void setInstances(byte[][] instances)
           
 void setPDecrement(double pDecrement)
           
 void setPRange(double p1, double p2)
           
 void trial(double p, byte[][][] holdouts)
           
 void trial(double p, byte[][][] holdouts, java.io.PrintStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected boolean debug

filestem

protected java.lang.String filestem

random

protected java.util.Random random

instances

protected byte[][] instances

distanceFunction

protected CosineSimilarityFingerprintMatcher distanceFunction
the distance function used.


p1

protected double p1

p2

protected double p2

pDecrement

protected double pDecrement

stats

protected Stats stats
Constructor Detail

ClusteringExperiment

public ClusteringExperiment(java.lang.String filestem)
                     throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

findClosestInstance

public int findClosestInstance(byte[] query,
                               byte[][] train)
                        throws java.lang.Exception
Throws:
java.lang.Exception

setDebug

public void setDebug(boolean debug)

setInstances

public void setInstances(byte[][] instances)

setPRange

public void setPRange(double p1,
                      double p2)

setPDecrement

public void setPDecrement(double pDecrement)

trial

public void trial(double p,
                  byte[][][] holdouts)
           throws java.lang.Exception
Throws:
java.lang.Exception

trial

public void trial(double p,
                  byte[][][] holdouts,
                  java.io.PrintStream out)
           throws java.lang.Exception
Throws:
java.lang.Exception

run

public void run(int iterations)
         throws java.lang.Exception
Throws:
java.lang.Exception

main

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