PetaVision  Alpha
InitSpreadOverArborsWeights.hpp
1 /*
2  * InitSpreadOverArborsWeights.hpp
3  *
4  * Created on: Sep 1, 2011
5  * Author: kpeterson
6  */
7 
8 #ifndef INITSPREADOVERARBORSWEIGHTS_HPP_
9 #define INITSPREADOVERARBORSWEIGHTS_HPP_
10 
11 #include "InitGauss2DWeights.hpp"
12 
13 namespace PV {
14 
16  protected:
17  virtual void ioParam_weightInit(enum ParamsIOFlag ioFlag);
18 
19  public:
20  InitSpreadOverArborsWeights(char const *name, HyPerCol *hc);
21  virtual ~InitSpreadOverArborsWeights();
22 
23  int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
24 
25  virtual void calcWeights(int patchIndex, int arborId) override;
26 
27  protected:
29  int initialize(char const *name, HyPerCol *hc);
30 
31  private:
32  int spreadOverArborsWeights(float *dataStart, int arborId);
33 
34  private:
35  float mWeightInit = 1.0f;
36 };
37 
38 } /* namespace PV */
39 #endif /* INITSPREADOVERARBORSWEIGHTS_HPP_ */
virtual void calcWeights() override
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override