PetaVision  Alpha
 All Data Structures Namespaces Functions Variables
PV::NormalizeContrastZeroMean Class Reference
Inheritance diagram for PV::NormalizeContrastZeroMean:
PV::NormalizeBase PV::BaseObject

Public Member Functions

 NormalizeContrastZeroMean (const char *name, HyPerCol *hc)
 
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)
 
virtual int normalizeWeights ()
 
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 accumulateSumAndSumSquared (pvwdata_t *dataPatchStart, int weights_in_patch, double *sum, double *sumsq)
 
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_minSumTolerated (enum ParamsIOFlag ioFlag)
 
virtual void ioParam_normalizeArborsIndividually (enum ParamsIOFlag ioFlag)
 
virtual void ioParam_normalizeFromPostPerspective (enum ParamsIOFlag ioFlag)
 
virtual void ioParam_normalizeOnInitialize (enum ParamsIOFlag ioFlag)
 
virtual void ioParam_normalizeOnWeightUpdate (enum ParamsIOFlag ioFlag)
 
virtual void ioParam_strength (enum ParamsIOFlag ioFlag)
 
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)
 
static void subtractOffsetAndNormalize (pvwdata_t *dataStartPatch, int weights_per_patch, float offset, float normalizer)
 

Protected Attributes

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

Private Member Functions

int initialize_base ()
 

Detailed Description

Definition at line 15 of file NormalizeContrastZeroMean.hpp.

Member Function Documentation

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

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

Definition at line 187 of file NormalizeBase.cpp.

int PV::NormalizeBase::normalizeWeightsWrapper ( )
inherited

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: