biosim.app.fishknn
Class FishKNNProx

java.lang.Object
  extended by biosim.app.fishknn.FishKNNProx
All Implemented Interfaces:
Agent

public class FishKNNProx
extends java.lang.Object
implements Agent


Field Summary
static int CLASSES
           
static double[] FEATURE_WEIGHTS
           
static int FEATURES
           
static int KNN_NEIGHBORS
           
static boolean MIRROR_TRAINING_DATA
           
static boolean USE_WEIGHTS
           
 
Constructor Summary
FishKNNProx(AbstractFish b, FastKNN knn)
           
 
Method Summary
 void act(double time)
           
 void finish()
           
 void init()
           
static FastKNN loadKNN(BTFData btf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FEATURES

public static final int FEATURES
See Also:
Constant Field Values

CLASSES

public static final int CLASSES
See Also:
Constant Field Values

KNN_NEIGHBORS

public static final int KNN_NEIGHBORS
See Also:
Constant Field Values

MIRROR_TRAINING_DATA

public static final boolean MIRROR_TRAINING_DATA
See Also:
Constant Field Values

USE_WEIGHTS

public static final boolean USE_WEIGHTS
See Also:
Constant Field Values

FEATURE_WEIGHTS

public static final double[] FEATURE_WEIGHTS
Constructor Detail

FishKNNProx

public FishKNNProx(AbstractFish b,
                   FastKNN knn)
Method Detail

init

public void init()
Specified by:
init in interface Agent

finish

public void finish()
Specified by:
finish in interface Agent

act

public void act(double time)
Specified by:
act in interface Agent

loadKNN

public static FastKNN loadKNN(BTFData btf)
                       throws java.io.IOException
Throws:
java.io.IOException