#ifndef NEURONPARAMS_H
#define NEURONPARAMS_H
#include "serialization.h"
#include "range.h"
#include <map>
#include <string>
#include "debug.h"
class NeuronParams {
public:
enum Integrator { Euler, Euler2, RungeKutta } integrator;
std::map<std::string, Range> vals;
std::map<std::string, double> sigmas;
std::map<std::string, bool> toggles;
double getval(std::string v) { return (double)this->vals[v]; }
private:
friend class boost::serialization::access;
template<class Archive>
void serialize(Archive &ar, const unsigned int version)
{
ar & integrator;
ar & vals;
ar & sigmas;
ar & toggles;
}
};
#endif