edu.georgetown.gucs.clustering
Class ClusteringExperimentWeka
java.lang.Object
edu.georgetown.gucs.clustering.ClusteringExperimentWeka
public class ClusteringExperimentWeka
- extends java.lang.Object
Method Summary |
int |
findClosestInstance(weka.core.Instance query,
weka.core.Instances train)
|
static void |
main(java.lang.String[] args)
|
void |
run(int iterations)
|
void |
setDistanceFunction(weka.core.DistanceFunction distanceFunction)
|
void |
setKIncrement(int kIncrement)
|
void |
setKRange(int k1,
int k2)
|
void |
setPDecrement(double pDecrement)
|
void |
setPRange(double p1,
double p2)
|
void |
trial(double p,
int k,
Pair<weka.core.Instances,weka.core.Instances> pair)
|
void |
trial(double p,
int k,
Pair<weka.core.Instances,weka.core.Instances> pair,
java.io.PrintStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filestem
protected java.lang.String filestem
random
protected java.util.Random random
instances
protected weka.core.Instances instances
distanceFunction
protected weka.core.DistanceFunction distanceFunction
k1
protected int k1
k2
protected int k2
kIncrement
protected int kIncrement
p1
protected double p1
p2
protected double p2
pDecrement
protected double pDecrement
stats
protected Stats stats
ClusteringExperimentWeka
public ClusteringExperimentWeka(java.lang.String filestem)
throws java.lang.Exception
- Throws:
java.lang.Exception
findClosestInstance
public int findClosestInstance(weka.core.Instance query,
weka.core.Instances train)
setDistanceFunction
public void setDistanceFunction(weka.core.DistanceFunction distanceFunction)
setKRange
public void setKRange(int k1,
int k2)
setKIncrement
public void setKIncrement(int kIncrement)
setPRange
public void setPRange(double p1,
double p2)
setPDecrement
public void setPDecrement(double pDecrement)
trial
public void trial(double p,
int k,
Pair<weka.core.Instances,weka.core.Instances> pair)
throws java.lang.Exception
- Throws:
java.lang.Exception
trial
public void trial(double p,
int k,
Pair<weka.core.Instances,weka.core.Instances> pair,
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)