PetaVision  Alpha
L0NormProbe.hpp
1 /*
2  * L0NormProbe.hpp
3  *
4  * Created on: Aug 11, 2015
5  * Author: pschultz
6  */
7 
8 #ifndef L0NORMPROBE_HPP_
9 #define L0NORMPROBE_HPP_
10 
11 #include "AbstractNormProbe.hpp"
12 
13 namespace PV {
14 
21  public:
22  L0NormProbe(const char *name, HyPerCol *hc);
23  virtual ~L0NormProbe();
24 
25  protected:
26  L0NormProbe();
27  int initialize(const char *name, HyPerCol *hc);
28  virtual double getValueInternal(double timevalue, int index) override;
29 
30  virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
42  virtual void ioParam_nnzThreshold(enum ParamsIOFlag ioFlag);
50  virtual int setNormDescription() override;
51 
52  private:
53  int initialize_base() { return PV_SUCCESS; }
54 
55  protected:
56  float nnzThreshold;
57 }; // end class L0NormProbe
58 
59 } // end namespace PV
60 
61 #endif /* L0NORMPROBE_HPP_ */
virtual int setNormDescription() override
virtual void ioParam_nnzThreshold(enum ParamsIOFlag ioFlag)
nnzThreshold: The threshold for computing the L0-norm. getValue(t, index) returns the number of targe...
Definition: L0NormProbe.cpp:33
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
Definition: L0NormProbe.cpp:27
virtual double getValueInternal(double timevalue, int index) override
Definition: L0NormProbe.cpp:37