11 #include "HyPerLayer.hpp" 13 #include "../include/pv_types.h" 14 #include "../io/fileio.hpp" 15 #include "columns/Random.hpp" 17 #define NUM_RETINA_CHANNELS 2 18 #define NUM_RETINA_EVENTS 3 31 float refractory_period;
32 float abs_refractory_period;
39 friend int test_kernels(
int argc,
char *argv[]);
43 virtual Response::Status
44 communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message)
override;
45 virtual Response::Status allocateDataStructures()
override;
49 virtual Response::Status updateState(
double time,
double dt)
override;
51 virtual bool activityIsSpiking()
override {
return spikingFlag; }
55 int initialize(
const char *name,
HyPerCol *hc);
56 virtual int ioParamsFillGroup(
enum ParamsIOFlag ioFlag)
override;
57 virtual void ioParam_InitVType(
enum ParamsIOFlag ioFlag)
override;
58 virtual void ioParam_spikingFlag(
enum ParamsIOFlag ioFlag);
59 virtual void ioParam_foregroundRate(
enum ParamsIOFlag ioFlag);
60 virtual void ioParam_backgroundRate(
enum ParamsIOFlag ioFlag);
61 virtual void ioParam_beginStim(
enum ParamsIOFlag ioFlag);
62 virtual void ioParam_endStim(
enum ParamsIOFlag ioFlag);
63 virtual void ioParam_burstFreq(
enum ParamsIOFlag ioFlag);
64 virtual void ioParam_burstDuration(
enum ParamsIOFlag ioFlag);
65 virtual void ioParam_refractoryPeriod(
enum ParamsIOFlag ioFlag);
66 virtual void ioParam_absRefractoryPeriod(
enum ParamsIOFlag ioFlag);
67 virtual void allocateV()
override;
68 virtual Response::Status registerData(
Checkpointer *checkpointer)
override;
69 virtual void initializeV()
override;
70 virtual void initializeActivity()
override;
71 virtual Response::Status readStateFromCheckpoint(
Checkpointer *checkpointer)
override;
72 virtual void readRandStateFromCheckpoint(
Checkpointer *checkpointer);
81 int initialize_base();
98 int nConnectedNeurons[],
101 int calculateWeights(
HyPerLayer *lSource,
float *pos,
float *vPos,
float *vfWeights);