biosim.app.learnedants
Class LearnedAnts
java.lang.Object
biosim.app.learnedants.LearnedAnts
- All Implemented Interfaces:
- Agent
public class LearnedAnts
- extends java.lang.Object
- implements Agent
Method Summary |
void |
act(double time)
|
void |
buildParameters(java.io.File parameterFile)
|
void |
finish()
|
void |
init()
|
static void |
main(java.lang.String[] args)
|
static double |
timeAvg(java.util.ArrayList<java.lang.Double> times)
|
static double |
timeStdDev(java.util.ArrayList<java.lang.Double> times,
double avg)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FEATURE_DIM
public static final int FEATURE_DIM
NUM_SWITCHES
public static final int NUM_SWITCHES
NUM_NEIGHBORS
public static final int NUM_NEIGHBORS
- See Also:
- Constant Field Values
KERN_BANDWIDTH
public static final double KERN_BANDWIDTH
- See Also:
- Constant Field Values
collectTimes
public static java.util.ArrayList<java.lang.Double> collectTimes
acqTimes
public static java.util.ArrayList<java.lang.Double> acqTimes
antDists
public static java.util.ArrayList<java.lang.Double> antDists
wallDists
public static java.util.ArrayList<java.lang.Double> wallDists
foodCounts
public static java.util.ArrayList<java.lang.Double> foodCounts
wallTimes
public static java.util.ArrayList<java.lang.Double> wallTimes
antTimes
public static java.util.ArrayList<java.lang.Double> antTimes
nestTimes
public static java.util.ArrayList<java.lang.Double> nestTimes
foodCounter
public int foodCounter
WIDTH
public static final double WIDTH
- See Also:
- Constant Field Values
HEIGHT
public static final double HEIGHT
- See Also:
- Constant Field Values
LearnedAnts
public LearnedAnts(AbstractAnt b,
double[] prior,
double[][][] transitionMatrix,
FastKNN[] knns)
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
buildParameters
public void buildParameters(java.io.File parameterFile)
throws java.io.IOException
- Throws:
java.io.IOException
timeAvg
public static double timeAvg(java.util.ArrayList<java.lang.Double> times)
timeStdDev
public static double timeStdDev(java.util.ArrayList<java.lang.Double> times,
double avg)
main
public static void main(java.lang.String[] args)