PetaVision  Alpha
L2NormProbe.hpp
1 /*
2  * L2NormProbe.hpp
3  *
4  * Created on: Aug 11, 2015
5  * Author: pschultz
6  */
7 
8 #ifndef L2NORMPROBE_HPP_
9 #define L2NORMPROBE_HPP_
10 
11 #include "AbstractNormProbe.hpp"
12 
13 namespace PV {
14 
21  public:
22  L2NormProbe(const char *name, HyPerCol *hc);
23  virtual ~L2NormProbe();
24 
25  protected:
26  L2NormProbe();
27  int initialize(const char *name, HyPerCol *hc);
28 
37  virtual int setNormDescription() override;
38 
42  virtual void calcValues(double timevalue) override;
43 
49  virtual double getValueInternal(double timevalue, int index) override;
50 
51  virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
52 
67  virtual void ioParam_exponent(enum ParamsIOFlag ioFlag);
70  private:
71  int initialize_base();
72 
73  // Member variables
74  double exponent;
75 }; // end class L2NormProbe
76 
77 } // end namespace PV
78 
79 #endif /* L2NORMPROBE_HPP_ */
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
Definition: L2NormProbe.cpp:32
virtual double getValueInternal(double timevalue, int index) override
Definition: L2NormProbe.cpp:60
virtual int setNormDescription() override
Definition: L2NormProbe.cpp:43
virtual void ioParam_exponent(enum ParamsIOFlag ioFlag)
exponent: The exponent on the L2-norm. getValue(t, index) returns (L2-Norm)^exponent.
Definition: L2NormProbe.cpp:38
virtual void calcValues(double timevalue) override