edu.georgetown.gucs.clustering
Class ClusteringExperiment
java.lang.Object
edu.georgetown.gucs.clustering.ClusteringExperiment
public class ClusteringExperiment
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ClusteringExperiment
public ClusteringExperiment(java.lang.String filestem)
throws java.lang.Exception
- Throws:
java.lang.Exception
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)