21 #ifndef SNABSUITE_SNABS_ACTIVATION_CURVE_HPP 22 #define SNABSUITE_SNABS_ACTIVATION_CURVE_HPP 24 #include <cypress/cypress.hpp> 38 std::vector<cypress::Population<cypress::SpikeSourceArray>>
m_pop_source;
46 std::string name, std::string backend,
50 std::initializer_list<std::string> indicator_units,
51 std::initializer_list<std::string> required_parameters,
58 std::vector<std::array<cypress::Real, 4>>
evaluate()
override;
59 virtual std::shared_ptr<SNABBase>
clone()
override 61 return std::make_shared<WeightDependentActivation>(
m_backend,
76 cypress::Real fraction_pres_time =
83 std::shared_ptr<SNABBase>
clone()
override 85 return std::make_shared<RateBasedWeightDependentActivation>(
void run_netw(cypress::Network &netw) override
cypress::Network & build_netw(cypress::Network &netw) override
Building the neural network for benchmarking. If you want to use an external network, you should use the first version of building (and the corresponding run function), for the member network use the second function. The implementation is contained in the first one.
std::string m_backend
String which contains the name of the simulation backend.
cypress::PopulationBase m_pop
virtual std::shared_ptr< SNABBase > clone() override
Virtual method cloning the SNAB without knowing which SNAB it is.
Virtual Base class for SNABs(Benchmarks). All SNABs should have seperate building of networks...
const std::vector< std::string > & indicator_measures() const
Getter for SNABSSuite::m_indicator_measures.
std::vector< std::array< cypress::Real, 4 > > evaluate() override
This should contain the evaluation process and return the result in order of those in names()...
const std::vector< std::string > & indicator_names() const
Getter for SNABSSuite::m_indicator_names.
const std::vector< std::string > & indicator_types() const
Getter for SNABSSuite::m_indicator_types.
int num_neurons_per_cycle
std::shared_ptr< SNABBase > clone() override
Virtual method cloning the SNAB without knowing which SNAB it is.
std::vector< cypress::Population< cypress::SpikeSourceArray > > m_pop_source
const size_t m_bench_index
WeightDependentActivation(std::string name, std::string backend, std::initializer_list< std::string > indicator_names, std::initializer_list< std::string > indicator_types, std::initializer_list< std::string > indicator_measures, std::initializer_list< std::string > indicator_units, std::initializer_list< std::string > required_parameters, size_t bench_index)
virtual std::vector< std::vector< cypress::Real > > binned_spike_counts()