PetaVision  Alpha
 All Data Structures Namespaces Functions Variables
PV::NormalizeBase Class Referenceabstract
Inheritance diagram for PV::NormalizeBase:
PV::BaseObject PV::NormalizeContrastZeroMean PV::NormalizeMultiply PV::NormalizeL2 PV::NormalizeMax PV::NormalizeSum PV::NormalizeGap

Public Member Functions

int addConnToList (HyPerConn *newConn)
char const * getKeyword () const
char const * getName () const
const bool getNormalizeArborsIndividuallyFlag ()
HyPerColgetParent () const
const float getStrength ()
virtual int ioParamsFillGroup (enum ParamsIOFlag ioFlag)
int normalizeWeightsWrapper ()

Protected Member Functions

int accumulateMax (pvwdata_t *dataPatchStart, int weights_in_patch, float *max)
int accumulateMaxAbs (pvwdata_t *dataPatchStart, int weights_in_patch, float *max)
int accumulateMin (pvwdata_t *dataPatchStart, int weights_in_patch, float *max)
int accumulateSum (pvwdata_t *dataPatchStart, int weights_in_patch, double *sum)
int accumulateSumShrunken (pvwdata_t *dataPatchStart, double *sum, int nxpShrunken, int nypShrunken, int offsetShrunken, int xPatchStride, int yPatchStride)
int accumulateSumSquared (pvwdata_t *dataPatchStart, int weights_in_patch, double *sumsq)
int accumulateSumSquaredShrunken (pvwdata_t *dataPatchStart, double *sumsq, int nxpShrunken, int nypShrunken, int offsetShrunken, int xPatchStride, int yPatchStride)
int initialize (const char *name, HyPerCol *hc)
virtual void ioParam_normalizeArborsIndividually (enum ParamsIOFlag ioFlag)
virtual void ioParam_normalizeOnInitialize (enum ParamsIOFlag ioFlag)
virtual void ioParam_normalizeOnWeightUpdate (enum ParamsIOFlag ioFlag)
virtual void ioParam_strength (enum ParamsIOFlag ioFlag)
virtual int normalizeWeights ()
int setName (char const *name)
int setParent (HyPerCol *hc)

Static Protected Member Functions

static void normalizePatch (pvwdata_t *dataStart, int weights_per_patch, float multiplier)

Protected Attributes

HyPerConn ** connectionList
char * name
bool normalizeArborsIndividually
bool normalizeOnInitialize
bool normalizeOnWeightUpdate
int numConnections
float strength

Private Member Functions

int initialize_base ()

Detailed Description

Definition at line 17 of file NormalizeBase.hpp.

Member Function Documentation

int PV::NormalizeBase::addConnToList ( HyPerConn newConn)

Appends the indicated connection to the list of connections for this normalizer

Definition at line 187 of file NormalizeBase.cpp.

int PV::NormalizeBase::normalizeWeightsWrapper ( )

The public interface for normalizing weights. If normalizeOnInitialize is true and the simulation time is startTime(), or if normalizeOnWeightUpdate is true and the simulation time is the conn's lastUpdateTime, it calls the (virtual protected) method normalizeWeights

Definition at line 76 of file NormalizeBase.cpp.

The documentation for this class was generated from the following files: