28 namespace ModelProperty
34 : m_StateVar(stateVar), m_Size(size)
45 return m_StateVar.get();
50 return m_StateVar.get();
87 void setValue(scalar value);
102 ValueList(
const pugi::xml_node &node,
const filesystem::path &basePath,
const std::vector<unsigned int> *remapIndices,
108 void setValue(
const std::vector<scalar> &values,
const std::vector<unsigned int> *remapIndices);
114 std::vector<scalar> m_Values;
128 void setValue(scalar min, scalar max);
134 std::mt19937 m_RandomGenerator;
135 std::uniform_real_distribution<scalar> m_Distribution;
149 void setValue(scalar mean, scalar variance);
155 std::mt19937 m_RandomGenerator;
156 std::normal_distribution<scalar> m_Distribution;
170 void setValue(scalar lambda);
176 std::mt19937 m_RandomGenerator;
177 std::exponential_distribution<scalar> m_Distribution;
183 std::unique_ptr<Base>
create(
const pugi::xml_node &node,
185 bool skipGeNNInitialised,
const filesystem::path &basePath,
186 const std::string &valueNamespace,
const std::vector<unsigned int> *remapIndices);
Definition: modelProperty.h:162
Definition: modelProperty.h:141
unsigned int getSize() const
Definition: modelProperty.h:62
scalar * getHostStateVar()
Definition: modelProperty.h:43
std::unique_ptr< Base > create(const pugi::xml_node &node, const StateVar< scalar > &stateVar, unsigned int size, bool skipGeNNInitialised, const filesystem::path &basePath, const std::string &valueNamespace, const std::vector< unsigned int > *remapIndices)
Definition: modelProperty.cc:226
Definition: modelProperty.h:78
void pullFromDevice() const
Definition: modelProperty.h:57
Definition: modelProperty.h:30
void pushToDevice() const
Definition: modelProperty.h:53
Definition: connectors.h:25
Definition: generateModules.h:16
Definition: connectors.h:12
virtual ~Base()
Definition: modelProperty.h:38
Definition: modelProperty.h:99
const scalar * getHostStateVar() const
Definition: modelProperty.h:48
Base(const StateVar< scalar > &stateVar, unsigned int size)
Definition: modelProperty.h:33
float scalar
Definition: modelProperty.h:27