biosim.app.learnedants
Class LearnedAnts

java.lang.Object
  extended by biosim.app.learnedants.LearnedAnts
All Implemented Interfaces:
Agent

public class LearnedAnts
extends java.lang.Object
implements Agent


Field Summary
static java.util.ArrayList<java.lang.Double> acqTimes
           
static java.util.ArrayList<java.lang.Double> antDists
           
static java.util.ArrayList<java.lang.Double> antTimes
           
static java.util.ArrayList<java.lang.Double> collectTimes
           
static int FEATURE_DIM
           
 int foodCounter
           
static java.util.ArrayList<java.lang.Double> foodCounts
           
static double HEIGHT
           
static double KERN_BANDWIDTH
           
static java.util.ArrayList<java.lang.Double> nestTimes
           
static int NUM_NEIGHBORS
           
static int NUM_SWITCHES
           
static java.util.ArrayList<java.lang.Double> wallDists
           
static java.util.ArrayList<java.lang.Double> wallTimes
           
static double WIDTH
           
 
Constructor Summary
LearnedAnts(AbstractAnt b, double[] prior, double[][][] transitionMatrix, FastKNN[] knns)
           
 
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
 

Field Detail

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
Constructor Detail

LearnedAnts

public LearnedAnts(AbstractAnt b,
                   double[] prior,
                   double[][][] transitionMatrix,
                   FastKNN[] knns)
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

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)