PetaVision
Alpha
Main Page
Data Structures
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
20
class
L0NormProbe
:
public
AbstractNormProbe
{
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_ */
PV::L0NormProbe::setNormDescription
virtual int setNormDescription() override
Definition:
L0NormProbe.cpp:131
PV::HyPerCol
Definition:
HyPerCol.hpp:41
PV::AbstractNormProbe
Definition:
AbstractNormProbe.hpp:28
PV::L0NormProbe::ioParam_nnzThreshold
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
PV::L0NormProbe::ioParamsFillGroup
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
Definition:
L0NormProbe.cpp:27
PV::L0NormProbe::getValueInternal
virtual double getValueInternal(double timevalue, int index) override
Definition:
L0NormProbe.cpp:37
PV
Definition:
CheckpointableFileStream.cpp:3
PV::L0NormProbe
Definition:
L0NormProbe.hpp:20
OpenPV
src
probes
L0NormProbe.hpp
Generated by
1.8.11