Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

WTAwinner Class Reference

#include <Neuro/WTAwinner.H>

Collaboration diagram for WTAwinner:

Collaboration graph
[legend]
List of all members.

Detailed Description

This is a an open class representing a WTA winner (covert attention shift).

This class is an open (all members public) container for a Point2D<int>, time stamp, saliency voltage and possibly other things that characterize a WTA winner, or covert shift of attention. Like Point2D<int>, this class is fully inlined, so there is no WTAwinner.C file.

Definition at line 52 of file WTAwinner.H.

Public Member Functions

 WTAwinner (const Point2D< int > &pp, const SimTime &tt, const double svv, const bool bor)
 Constructor given a Point2D<int>, time and other stuff.
Point2D< int > getSMcoords (const int smlevel) const
 Return coordinates scaled down to scale of saliency map.
bool isValid () const
 returns true if coordinates are not (-1, -1)

Static Public Member Functions

static WTAwinner NONE ()
static WTAwinner buildFromSMcoords (const Point2D< int > smcoords, const int smlevel, const bool useRandom, const SimTime &tt, const double svv, const bool bor)
 Build from coordinates given at the scale of the saliency map.

Public Attributes

Point2D< int > p
 The spatial coordinates within the full-resolution input.
Point2D< int > smpos
SimTime t
 The time, in seconds.
double sv
 The saliency map voltage at winning location, in Volts.
bool boring
 True is this shift was made out of boredom.


Constructor & Destructor Documentation

WTAwinner::WTAwinner const Point2D< int > &  pp,
const SimTime tt,
const double  svv,
const bool  bor
[inline]
 

Constructor given a Point2D<int>, time and other stuff.

Definition at line 95 of file WTAwinner.H.

Referenced by NONE().


Member Function Documentation

WTAwinner WTAwinner::buildFromSMcoords const Point2D< int >  smcoords,
const int  smlevel,
const bool  useRandom,
const SimTime tt,
const double  svv,
const bool  bor
[inline, static]
 

Build from coordinates given at the scale of the saliency map.

Definition at line 110 of file WTAwinner.H.

References ASSERT, boring, getSMcoords(), Point2D< T >::i, Point2D< T >::j, NONE(), p, randomDouble(), smpos, sv, and t.

Referenced by main(), and submain().

Point2D< int > WTAwinner::getSMcoords const int  smlevel  )  const [inline]
 

Return coordinates scaled down to scale of saliency map.

Definition at line 101 of file WTAwinner.H.

References Point2D< T >::i, Point2D< T >::j, and p.

Referenced by buildFromSMcoords().

bool WTAwinner::isValid  )  const [inline]
 

returns true if coordinates are not (-1, -1)

Definition at line 154 of file WTAwinner.H.

References Point2D< T >::isValid(), and p.

Referenced by ThresholdSaccadeController::checkPercepts(), SimulationViewerStd::drawFOA(), SimulationViewerNerdCam::drawFOA(), SimulationViewerStd::linkFOAs(), SimulationViewerNerdCam::linkFOAs(), main(), and submain().


Member Data Documentation

bool WTAwinner::boring
 

True is this shift was made out of boredom.

Definition at line 83 of file WTAwinner.H.

Referenced by buildFromSMcoords(), SimulationViewerStd::drawEye(), SimulationViewerStd::drawFOA(), SimulationViewerNerdCam::drawFOA(), SimulationViewerStd::drawHead(), VisualBufferStd::input(), and SimEventWTAwinner::toString().

Point2D<int> WTAwinner::p
 

The spatial coordinates within the full-resolution input.

Definition at line 79 of file WTAwinner.H.

Referenced by buildFromSMcoords(), ThresholdSaccadeController::checkPercepts(), TrivialSaccadeController::computeWhenNewDecision(), ThresholdFrictionSaccadeController::computeWhenNewPercept(), FrictionSaccadeController::computeWhenNewPercept(), MonkeySaccadeController::computeWhenResetPos(), ThresholdFrictionSaccadeController::computeWhenResetPos(), ThresholdSaccadeController::computeWhenResetPos(), FrictionSaccadeController::computeWhenResetPos(), FixedSaccadeController::computeWhenResetPos(), FrictionSaccadeController::doEvolve(), SimulationViewerStd::drawFOA(), SimulationViewerNerdCam::drawFOA(), SaccadeController::dumpQueues(), getSMcoords(), SimulationViewerStd::getTraj(), SimulationViewerNerdCam::getTraj(), VisualBufferStd::input(), isValid(), SimulationViewerStd::linkFOAs(), SimulationViewerNerdCam::linkFOAs(), main(), and SimEventWTAwinner::toString().

double WTAwinner::sv
 

The saliency map voltage at winning location, in Volts.

Definition at line 82 of file WTAwinner.H.

Referenced by buildFromSMcoords(), ThresholdSaccadeController::checkPercepts(), SaccadeController::dumpQueues(), and SimEventWTAwinner::toString().

SimTime WTAwinner::t
 

The time, in seconds.

Definition at line 81 of file WTAwinner.H.

Referenced by buildFromSMcoords(), FrictionSaccadeController::computeWhenNewPercept(), FrictionSaccadeController::computeWhenResetPos(), and SaccadeController::dumpQueues().


The documentation for this class was generated from the following file:
Generated on Mon Nov 23 15:51:30 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4