
#include <Neuro/SaccadeControllers.H>
Inheritance diagram for ThresholdSaccadeController:


ThresholdSaccadeController will issue an overt control whenever the received covert shifts are large and go to a same target for several successive covert shifts. It is hence to be used with IOR turned off, so that the covert system will keep attending to a same location for a while. Once a minimum number of covert shifts have been made that are sufficiently far from the current overt location and that are sufficiently close to each other, an overt shift will be issued, to the average location of the accumulated covert locations.
Definition at line 204 of file SaccadeControllers.H.
Public Member Functions | |
| ThresholdSaccadeController (OptionManager &mgr, const SaccadeBodyPart bodypart) | |
| Constructor. | |
| virtual | ~ThresholdSaccadeController () |
| Destructor. | |
| virtual void | reset1 () |
| Reset ThresholdSaccadeController. | |
| virtual void | checkPercepts (bool &areclose, Point2D< int > &avgp) |
| Check queued-up percepts and return average. | |
Protected Member Functions | |
| virtual void | doEvolve (SimEventQueue &q) |
| evolve one time step | |
| virtual void | computeWhenNewPercept (SimEventQueue &q) |
| This method is called each time a new percept has arrived. | |
| virtual void | computeWhenResetPos (SimEventQueue &q) |
| This method is called each time a reset is made. | |
| virtual Point2D< int > | computeWhenNewDecision (SaccadeState &sacstate, bool &blinkstate, SimEventQueue &q) |
| This method is called each time a new decision is requested. | |
| virtual void | start1 () |
| Get us started. | |
Protected Attributes | |
| OModelParam< float > | itsOdist |
| min overt distance | |
| OModelParam< float > | itsCdist |
| max covert distance | |
| OModelParam< int > | itsMinNum |
| min number of close covert shifts | |
| OModelParam< bool > | itsSalWeight |
| weight average covert pos by saliency | |
| nub::ref< SpatialMetrics > | itsMetrics |
| metrics that depend on input size | |
| float | odistsq |
| float | cdistsq |
| bool | sweight |
| bool | didresetpos |
| Point2D< int > | resetloc |
Friends | |
| class | ThresholdFrictionSaccadeController |
|
||||||||||||
|
Constructor.
Definition at line 317 of file SaccadeControllers.C. References ModelComponent::addSubComponent(), and itsMetrics. |
|
|
Destructor.
Definition at line 356 of file SaccadeControllers.C. |
|
||||||||||||
|
Check queued-up percepts and return average. check whether queued-up percepts are close to each other, and also return average position of percept queue Definition at line 374 of file SaccadeControllers.C. References cdistsq, SaccadeController::getPreviousPercept(), OModelParam< T >::getVal(), Point2D< T >::i, WTAwinner::isValid(), itsSalWeight, Point2D< T >::j, WTAwinner::p, Point2D< T >::squdist(), WTAwinner::sv, w, weight, and win. Referenced by computeWhenNewDecision(). |
|
||||||||||||||||
|
This method is called each time a new decision is requested.
Implements SaccadeController. Definition at line 417 of file SaccadeControllers.C. References checkPercepts(), didresetpos, SaccadeController::getPreviousDecision(), SaccadeController::haveDecisions(), SaccadeController::havePercepts(), Point2D< T >::isValid(), odistsq, Point2DT::p, resetloc, SACSTATE_FIX, SACSTATE_SAC, SACSTATE_UNK, and Point2D< T >::squdist(). |
|
|
This method is called each time a new percept has arrived.
Implements SaccadeController. Definition at line 400 of file SaccadeControllers.C. |
|
|
This method is called each time a reset is made.
Implements SaccadeController. Definition at line 404 of file SaccadeControllers.C. References didresetpos, SaccadeController::getPreviousPercept(), WTAwinner::p, and resetloc. |
|
|
evolve one time step
Implements SaccadeController. Definition at line 360 of file SaccadeControllers.C. |
|
|
Reset ThresholdSaccadeController. See the base function in ModelComponent.H for info. Reimplemented from SaccadeController. Definition at line 364 of file SaccadeControllers.C. References didresetpos, and SaccadeController::reset1(). |
|
|
Get us started.
Reimplemented from SimModule. Definition at line 343 of file SaccadeControllers.C. References cdistsq, didresetpos, OModelParam< T >::getVal(), itsCdist, itsMetrics, itsMinNum, itsOdist, odistsq, SaccadeController::resetPqlen(), and SimModule::start1(). |
|
|
max covert distance
Definition at line 259 of file SaccadeControllers.H. Referenced by start1(). |
|
|
metrics that depend on input size
Definition at line 263 of file SaccadeControllers.H. Referenced by start1(), and ThresholdSaccadeController(). |
|
|
min number of close covert shifts
Definition at line 260 of file SaccadeControllers.H. Referenced by start1(). |
|
|
min overt distance
Definition at line 258 of file SaccadeControllers.H. Referenced by start1(). |
|
|
weight average covert pos by saliency
Definition at line 261 of file SaccadeControllers.H. Referenced by checkPercepts(). |
1.4.4