#include <retina.h>
Inheritance diagram for Retina:
Definition at line 70 of file retina.h.
Public Methods | |
Retina (string name_i, Dimensions dims, ActivationFunction *actfn_=0, Activity size_scale_=1.0) | |
virtual void | activate (bool=false, bool=false, bool=false) |
Activate the map given the current inputs. | |
void | set_input (const Retinal_Obj *const obj) |
Make the retina point to a particular view of the world. | |
virtual bool | is_plastic () const |
Returns true if this region might contain modifiable weights. | |
double | size_connection_bytes () const |
Returns the size of this region, in terms of the number of bytes taken to store its connections. | |
double | size_unique_connections () const |
Returns the size of this region, in terms of the number of connections which might hold unique values. | |
Protected Attributes | |
const Retinal_Obj * | world_model |
Most-recently-selected world view. | |
const OwningPointer< ActivationFunction > | actfn |
Activation function, generally at most thresholding. | |
const Activity | xo |
Offset relative to the origin; this allows drawing to be aligned properly even when retina has been expanded as a buffer for later regions. | |
const Activity | yo |
See xo. | |
const Activity | size_scale |
Size scale relative to ther previous region; this allows drawing to be sized properly even when retina is of a different magnification than later regions. |
|
Activate the map given the current inputs. Must be implemented by derived classes. Implements NeuralRegion. Definition at line 80 of file retina.h. References draw(), and NeuralRegion::output. |
|
Returns true if this region might contain modifiable weights. Regions are assumed to be modifiable unless they declare otherwise. Reimplemented from NeuralRegion. |
|
Returns the size of this region, in terms of the number of bytes taken to store its connections. Required to be implemented by each type of region. Implements NeuralRegion. |
|
Returns the size of this region, in terms of the number of connections which might hold unique values. (This might be different from the total number of connections if e.g. some connections are shared between different units.) Implements NeuralRegion. |