34 virtual void update(
double dt,
unsigned long long timestep,
35 std::function<
void(
unsigned int,
double)> applyValueFunc) = 0;
38 Base(
unsigned int numNeurons,
const pugi::xml_node &node);
50 unsigned int m_NumNeurons;
51 std::vector<unsigned int> m_TargetIndices;
60 ScalarBase(
unsigned int numNeurons,
const pugi::xml_node &node) :
Base(numNeurons, node){}
65 void applyScalar(
double value,
66 std::function<
void(
unsigned int,
double)> applyValueFunc)
const;
75 Constant(
double dt,
unsigned int numNeurons,
const pugi::xml_node &node);
80 virtual void update(
double dt,
unsigned long long timestep,
81 std::function<
void(
unsigned int,
double)> applyValueFunc)
override;
96 ConstantArray(
double dt,
unsigned int numNeurons,
const pugi::xml_node &node);
101 virtual void update(
double dt,
unsigned long long timestep,
102 std::function<
void(
unsigned int,
double)> applyValueFunc)
override;
108 std::vector<double> m_Values;
117 TimeVarying(
double dt,
unsigned int numNeurons,
const pugi::xml_node &node);
122 virtual void update(
double dt,
unsigned long long timestep,
123 std::function<
void(
unsigned int,
double)> applyValueFunc)
override;
129 std::map<unsigned int, double> m_TimeValues;
138 TimeVaryingArray(
double dt,
unsigned int numNeurons,
const pugi::xml_node &node);
143 virtual void update(
double dt,
unsigned long long timestep,
144 std::function<
void(
unsigned int,
double)> applyValueFunc)
override;
150 typedef std::vector<std::pair<unsigned int, double>> NeuronValueVec;
156 std::map<unsigned int, NeuronValueVec> m_TimeArrays;
165 External(
double dt,
unsigned int numNeurons,
const pugi::xml_node &node);
170 virtual void update(
double dt,
unsigned long long timestep,
171 std::function<
void(
unsigned int,
double)> applyValueFunc)
final;
190 return getTargetIndices().empty() ? getNumNeurons() : (
unsigned int)getTargetIndices().size();
199 std::vector<double> m_Buffer;
202 unsigned int m_IntervalTimesteps;
205 unsigned int m_CurrentIntervalTimesteps;
214 ExternalNetwork(
double dt,
unsigned int numNeurons,
const pugi::xml_node &node);
220 virtual void updateInternal()
override;
232 std::unique_ptr<Base>
create(
double dt,
unsigned int numNeurons,
const pugi::xml_node &node,
233 std::map<std::string, InputValue::External*> &externalInputs);
Definition: networkClient.h:27
Definition: connectors.h:25
Definition: connectors.h:12