This is a an open class representing a WTA winner (covert attention shift). More...
#include <Neuro/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. |
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.
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.
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, p, randomDouble(), sv, and t.
Referenced by main().
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, 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(), SimulationViewerNerdCam::drawFOA(), SimulationViewerStd::drawFOA(), SimulationViewerNerdCam::linkFOAs(), SimulationViewerStd::linkFOAs(), and main().
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(), SimulationViewerNerdCam::drawFOA(), SimulationViewerStd::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().
The time, in seconds.
Definition at line 81 of file WTAwinner.H.
Referenced by buildFromSMcoords(), FrictionSaccadeController::computeWhenNewPercept(), FrictionSaccadeController::computeWhenResetPos(), and SaccadeController::dumpQueues().