1 #ifndef BINNINGLAYER_HPP_ 2 #define BINNINGLAYER_HPP_ 4 #include "HyPerLayer.hpp" 82 virtual Response::Status
83 communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message)
override;
84 virtual Response::Status allocateDataStructures()
override;
85 virtual bool activityIsSpiking()
override {
return false; }
87 float getBinSigma() {
return mBinSigma; }
91 int initialize(
const char *name,
HyPerCol *hc);
93 virtual void allocateV()
override;
94 virtual void initializeV()
override;
95 virtual void initializeActivity()
override;
96 virtual Response::Status updateState(
double simTime,
double dt)
override;
98 float calcGaussian(
float x,
float sigma);
101 int initialize_base();
103 float mBinMax = 0.0f;
104 float mBinMin = 1.0f;
105 float mBinSigma = 0.0f;
106 bool mZeroNeg =
true;
107 bool mZeroDCR =
false;
110 char *mOriginalLayerName =
nullptr;
void ioParam_zeroDCR(enum ParamsIOFlag ioFlag)
void ioParam_originalLayerName(enum ParamsIOFlag ioFlag)
void ioParam_binSigma(enum ParamsIOFlag ioFlag)
void ioParam_binMax(enum ParamsIOFlag ioFlag)
void ioParam_delay(enum ParamsIOFlag ioFlag)
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
void ioParam_zeroNeg(enum ParamsIOFlag ioFlag)
void ioParam_binMin(enum ParamsIOFlag ioFlag)