biosim.app.learnedants
Class RealAntInputParser

java.lang.Object
  extended by biosim.app.learnedants.BIOHMMInputParser
      extended by biosim.app.learnedants.RealAntInputParser

public class RealAntInputParser
extends BIOHMMInputParser


Field Summary
protected  java.lang.String[] antVec
           
protected  java.lang.String[] desiredVel
           
static int DIM
           
protected  java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> foundSequences
           
static double NEAR_THRESH
           
protected  java.lang.String[] nestVec
           
static int NUM_SENSORS
           
static int NUM_SWITCHES
           
protected  int numTrackPoints
           
 java.util.Random random
           
protected  java.lang.String[] wallVec
           
 
Fields inherited from class biosim.app.learnedants.BIOHMMInputParser
foodVec, gripperBool, nearFoodBool, nearNestBool, prevVec, stateVec
 
Constructor Summary
RealAntInputParser(BTFData data)
           
 
Method Summary
 double[] getDataAtIDX(int idx)
           
static double[] getSensors(AbstractAnt antBody)
           
 double[] getSensorsAtIDX(int idx)
           
 java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> getSequences()
           
 int getStateAtIDX(int idx)
           
static int getSwitch(AbstractAnt antBody)
           
 int getSwitchAtIDX(int idx)
           
 void initParameters(double[][][] transitionFunction, double[] prior, int[] partition, SimpleKDE[] b)
           
static int numSwitches()
           
static int outputDim()
           
 int partSize()
           
static int sensorDim()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

desiredVel

protected java.lang.String[] desiredVel

wallVec

protected java.lang.String[] wallVec

antVec

protected java.lang.String[] antVec

nestVec

protected java.lang.String[] nestVec

numTrackPoints

protected int numTrackPoints

NUM_SENSORS

public static final int NUM_SENSORS
See Also:
Constant Field Values

DIM

public static final int DIM
See Also:
Constant Field Values

NUM_SWITCHES

public static final int NUM_SWITCHES
See Also:
Constant Field Values

NEAR_THRESH

public static final double NEAR_THRESH
See Also:
Constant Field Values

foundSequences

protected java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> foundSequences

random

public java.util.Random random
Constructor Detail

RealAntInputParser

public RealAntInputParser(BTFData data)
Method Detail

getDataAtIDX

public double[] getDataAtIDX(int idx)
Overrides:
getDataAtIDX in class BIOHMMInputParser

getSensors

public static double[] getSensors(AbstractAnt antBody)

getSensorsAtIDX

public double[] getSensorsAtIDX(int idx)
Overrides:
getSensorsAtIDX in class BIOHMMInputParser

getStateAtIDX

public int getStateAtIDX(int idx)
Overrides:
getStateAtIDX in class BIOHMMInputParser

getSwitch

public static int getSwitch(AbstractAnt antBody)

getSwitchAtIDX

public int getSwitchAtIDX(int idx)
Overrides:
getSwitchAtIDX in class BIOHMMInputParser

partSize

public int partSize()
Overrides:
partSize in class BIOHMMInputParser

numSwitches

public static int numSwitches()

outputDim

public static int outputDim()

sensorDim

public static int sensorDim()

getSequences

public java.util.ArrayList<java.util.ArrayList<java.lang.Integer>> getSequences()
Overrides:
getSequences in class BIOHMMInputParser

initParameters

public void initParameters(double[][][] transitionFunction,
                           double[] prior,
                           int[] partition,
                           SimpleKDE[] b)
Overrides:
initParameters in class BIOHMMInputParser