#include <AnalogInputNeuron.h>


Public Member Functions | |
| AnalogInputNeuron () | |
| AnalogInputNeuron (const std::vector< double > &values) | |
| virtual | ~AnalogInputNeuron () |
| void | setAnalogValues (const std::vector< double > &values) |
| void | addAnalogValue (double v) |
| const std::vector< double > & | getAnalogValues () const |
| virtual double | getAnalogOutput (analog_port_id_t port=0) const |
| Return the analog value currently associated with the given port. | |
| virtual int | advance (AdvanceInfo const &) |
| Calculate the next state and output/propagate the result to succesors/outgoing objects. | |
| virtual int | reset (double dt) |
| Called at the beginning of a simulation at t=0. | |
| void | printAnalogValues () const |
| virtual double | getManagedDelay () const |
| virtual int | nSpikeInputPorts () const |
| virtual int | nSpikeOutputPorts () const |
| virtual int | nAnalogInputPorts () const |
| virtual int | nAnalogOutputPorts () const |
| virtual PortType | outputPortType (port_t o) const |
| virtual PortType | inputPortType (port_t i) const |
Protected Attributes | |
| std::vector< double > | values |
| int | current |
| double | Vm |
Definition at line 8 of file AnalogInputNeuron.h.
| AnalogInputNeuron::AnalogInputNeuron | ( | ) |
| AnalogInputNeuron::AnalogInputNeuron | ( | const std::vector< double > & | values | ) |
| AnalogInputNeuron::~AnalogInputNeuron | ( | ) | [virtual] |
Definition at line 19 of file AnalogInputNeuron.cpp.
| void AnalogInputNeuron::setAnalogValues | ( | const std::vector< double > & | values | ) |
| void AnalogInputNeuron::addAnalogValue | ( | double | v | ) |
| const vector< double > & AnalogInputNeuron::getAnalogValues | ( | ) | const |
| double AnalogInputNeuron::getAnalogOutput | ( | analog_port_id_t | port = 0 |
) | const [virtual] |
Return the analog value currently associated with the given port.
Reimplemented from SimObject.
Definition at line 38 of file AnalogInputNeuron.cpp.
| int AnalogInputNeuron::advance | ( | AdvanceInfo const & | ) | [virtual] |
Calculate the next state and output/propagate the result to succesors/outgoing objects.
The return value of advance contains several bits of information which can be decoded with the bit masks ADVANCEFLAG_* like ADVANCEFLAG_HASSPIKED and ADVANCEFLAG_DEACTIVATE.
Reimplemented from SimObject.
Definition at line 46 of file AnalogInputNeuron.cpp.
| void AnalogInputNeuron::printAnalogValues | ( | ) | const |
| virtual double AnalogInputNeuron::getManagedDelay | ( | ) | const [inline, virtual] |
| virtual int AnalogInputNeuron::nSpikeInputPorts | ( | ) | const [inline, virtual] |
| virtual int AnalogInputNeuron::nSpikeOutputPorts | ( | ) | const [inline, virtual] |
| virtual int AnalogInputNeuron::nAnalogInputPorts | ( | ) | const [inline, virtual] |
| virtual int AnalogInputNeuron::nAnalogOutputPorts | ( | ) | const [inline, virtual] |
Reimplemented from SimObject.
Definition at line 41 of file AnalogInputNeuron.h.
References SimObject::analog.
std::vector<double> AnalogInputNeuron::values [protected] |
Definition at line 42 of file AnalogInputNeuron.h.
Referenced by addAnalogValue(), advance(), getAnalogOutput(), getAnalogValues(), printAnalogValues(), and reset().
int AnalogInputNeuron::current [protected] |
Definition at line 47 of file AnalogInputNeuron.h.
Referenced by advance(), AnalogInputNeuron(), getAnalogOutput(), and reset().
double AnalogInputNeuron::Vm [protected] |
1.5.5