lobot::TTIMap Class Reference

A mapping between actual times-to-impact recorded in logs generated during the Bayesiant TTI prediction experiments and the corresponding LGMD spike rates, predicted times-to-impact and prediction confidence levels. More...

#include <Robots/LoBot/baylog/LoTTIMap.H>

Collaboration diagram for lobot::TTIMap:
Collaboration graph
[legend]

List of all members.

Classes

class  dump

Public Member Functions

 TTIMap ()
 Constructor.
void add (float actual_tti, float lgmd_spike_rate, float predicted_tti, float prediction_confidence)
 This method adds a record parsed from a log file to the map.

Friends

std::ostream & operator<< (std::ostream &, const TTIMap &)

Detailed Description

A mapping between actual times-to-impact recorded in logs generated during the Bayesiant TTI prediction experiments and the corresponding LGMD spike rates, predicted times-to-impact and prediction confidence levels.

This class maps the actual TTI values read from a Bayesian time-to-impact prediction experiment's log file to the corresponding LGMD spike rates, predicted TTI's and confidence levels (also recorded in the log).

Sometimes, an experiment may record the same actual time-to-impact multiple times. Each such occurence may be associated with a slightly different set of values for the predicted TTI, prediction confidence and LGMD spike rate. Furthermore, the different logs making up a dataset might record the same values for actual TTI's with slightly different values for the corresponding predictions and LGMD spike rate.

Therefore, for each actual TTI, we maintain a list of corresponding predictions, confidence levels and LGMD spike rates. To figure out the average-case behaviour of the Bayesian prediction model, we compute the means and standard deviations of all these lists for each actual TTI and store the results to a file.

Definition at line 125 of file LoTTIMap.H.


Constructor & Destructor Documentation

lobot::TTIMap::TTIMap (  ) 

Constructor.

Definition at line 118 of file LoTTIMap.C.


Member Function Documentation

void lobot::TTIMap::add ( float  actual_tti,
float  lgmd_spike_rate,
float  predicted_tti,
float  prediction_confidence 
)

This method adds a record parsed from a log file to the map.

Definition at line 120 of file LoTTIMap.C.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const TTIMap  
) [friend]

Output operator. It should be used after the whole map has been assembled from all the logs in a dataset.

This function will compute the means and standard deviations of all the LGMD spike rates, predicted TTI values and prediction confidence levels corresponding to each actual TTI value and write the results to the supplied stream.

This function writes the given TTIMap to the specified stream, computing the proper averages, etc. as required. It should only be used after the TTIMap has been "fully assembled" by parsing all the log files for a Bayesian TTI prediction experiment dataset.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:27 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3