PetaVision  Alpha
PV::NormalizeContrastZeroMean Class Reference
Inheritance diagram for PV::NormalizeContrastZeroMean:
PV::NormalizeBase PV::BaseObject PV::CheckpointerDataInterface PV::Observer

Public Member Functions

 NormalizeContrastZeroMean (const char *name, HyPerCol *hc)
 
int addConnToList (HyPerConn *newConn)
 
virtual int communicateInitInfo (CommunicateInitInfoMessage const *message) override
 
bool getDataStructuresAllocatedFlag ()
 
std::string const & getDescription () const
 
char const * getDescription_c () const
 
bool getInitialValuesSetFlag ()
 
bool getInitInfoCommunicatedFlag ()
 
char const * getKeyword () const
 
MPIBlock const * getMPIBlock ()
 
char const * getName () const
 
bool getNormalizeArborsIndividuallyFlag () const
 
float getStrength () const
 
virtual int ioParamsFillGroup (enum ParamsIOFlag ioFlag) override
 
bool isUsingGPU () const
 
virtual int normalizeWeights () override
 
int normalizeWeightsWrapper ()
 
virtual int registerData (Checkpointer *checkpointer)
 
virtual int respond (std::shared_ptr< BaseMessage const > message) override
 

Protected Member Functions

int accumulateMax (float *dataPatchStart, int weights_in_patch, float *max)
 
int accumulateMaxAbs (float *dataPatchStart, int weights_in_patch, float *max)
 
int accumulateMin (float *dataPatchStart, int weights_in_patch, float *max)
 
int accumulateSum (float *dataPatchStart, int weights_in_patch, float *sum)
 
int accumulateSumAndSumSquared (float *dataPatchStart, int weights_in_patch, float *sum, float *sumsq)
 
int accumulateSumShrunken (float *dataPatchStart, float *sum, int nxpShrunken, int nypShrunken, int offsetShrunken, int xPatchStride, int yPatchStride)
 
int accumulateSumSquared (float *dataPatchStart, int weights_in_patch, float *sumsq)
 
int accumulateSumSquaredShrunken (float *dataPatchStart, float *sumsq, int nxpShrunken, int nypShrunken, int offsetShrunken, int xPatchStride, int yPatchStride)
 
virtual int allocateDataStructures ()
 
virtual int cleanup ()
 
virtual int copyInitialStateToGPU ()
 
int initialize (const char *name, HyPerCol *hc)
 
virtual int initializeState ()
 
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)
 
virtual int prepareCheckpointWrite ()
 
virtual int processCheckpointRead ()
 
virtual int readStateFromCheckpoint (Checkpointer *checkpointer) override
 
int respondAllocateData (AllocateDataMessage const *message)
 
int respondCleanup (CleanupMessage const *message)
 
int respondCommunicateInitInfo (CommunicateInitInfoMessage const *message)
 
int respondCopyInitialStateToGPUMessage (CopyInitialStateToGPUMessage const *message)
 
int respondInitializeState (InitializeStateMessage const *message)
 
int respondPrepareCheckpointWrite (PrepareCheckpointWriteMessage const *message)
 
int respondProcessCheckpointRead (ProcessCheckpointReadMessage const *message)
 
int respondReadStateFromCheckpoint (ReadStateFromCheckpointMessage< Checkpointer > const *message)
 
int respondRegisterData (RegisterDataMessage< Checkpointer > const *message)
 
void setDataStructuresAllocatedFlag ()
 
virtual int setDescription () override
 
void setInitialValuesSetFlag ()
 
void setInitInfoCommunicatedFlag ()
 
int setName (char const *name)
 
int setParent (HyPerCol *hc)
 

Static Protected Member Functions

static void normalizePatch (float *dataStart, int weights_per_patch, float multiplier)
 
static void subtractOffsetAndNormalize (float *dataStartPatch, int weights_per_patch, float offset, float normalizer)
 

Protected Attributes

std::vector< HyPerConn * > connectionList
 
std::string description
 
bool mDataStructuresAllocatedFlag = false
 
bool mInitialValuesSetFlag = false
 
bool mInitInfoCommunicatedFlag = false
 
float minSumTolerated
 
bool mUsingGPUFlag = false
 
char * name = nullptr
 
bool normalizeArborsIndividually
 
bool normalizeOnInitialize
 
bool normalizeOnWeightUpdate
 
HyPerColparent = nullptr
 
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 237 of file NormalizeBase.cpp.

int PV::NormalizeBase::communicateInitInfo ( CommunicateInitInfoMessage const *  message)
overridevirtualinherited

Called by HyPerConn::communicateInitInfo this virtual method is where settings that depend on other objects take place. In particular, NormalizeGroup calls its group head's addConnToList method from NormalizeGroup::communicateInitInfo method.

Reimplemented from PV::BaseObject.

Reimplemented in PV::NormalizeGroup.

Definition at line 88 of file NormalizeBase.cpp.

bool PV::BaseObject::getDataStructuresAllocatedFlag ( )
inlineinherited

Get-method for mDataStructuresAllocatedFlag, which is false on initialization and then becomes true once setDataStructuresAllocatedFlag() is called.

Definition at line 65 of file BaseObject.hpp.

bool PV::BaseObject::getInitialValuesSetFlag ( )
inlineinherited

Get-method for mInitialValuesSetFlag, which is false on initialization and then becomes true once setInitialValuesSetFlag() is called.

Definition at line 71 of file BaseObject.hpp.

bool PV::BaseObject::getInitInfoCommunicatedFlag ( )
inlineinherited

Get-method for mInitInfoCommunicatedFlag, which is false on initialization and then becomes true once setInitInfoCommunicatedFlag() is called.

Definition at line 58 of file BaseObject.hpp.

bool PV::BaseObject::isUsingGPU ( ) const
inlineinherited

Returns true if the object requires the GPU; false otherwise. HyPerCol will not initialize the GPU unless one of the objects in its hierarchy returns true

Definition at line 79 of file BaseObject.hpp.

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 95 of file NormalizeBase.cpp.

void PV::BaseObject::setDataStructuresAllocatedFlag ( )
inlineprotectedinherited

This method sets mDataStructuresAllocatedFlag to true.

Definition at line 111 of file BaseObject.hpp.

void PV::BaseObject::setInitialValuesSetFlag ( )
inlineprotectedinherited

This method sets the flag returned by getInitialValuesSetFlag to true.

Definition at line 116 of file BaseObject.hpp.

void PV::BaseObject::setInitInfoCommunicatedFlag ( )
inlineprotectedinherited

This method sets mInitInfoCommunicatedFlag to true.

Definition at line 106 of file BaseObject.hpp.


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