PetaVision  Alpha
PV::InitCocircWeights Class Reference
Inheritance diagram for PV::InitCocircWeights:
PV::InitGauss2DWeights PV::InitWeights PV::BaseObject PV::CheckpointerDataInterface PV::Observer

InitGauss2DWeight Parameters

List of parameters needed from the InitGauss2DWeight class

virtual void ioParam_aspect (enum ParamsIOFlag ioFlag)
virtual void ioParam_sigma (enum ParamsIOFlag ioFlag)
virtual void ioParam_rMax (enum ParamsIOFlag ioFlag)
virtual void ioParam_rMin (enum ParamsIOFlag ioFlag)
virtual void ioParam_strength (enum ParamsIOFlag ioFlag)
virtual void ioParam_numOrientationsPost (enum ParamsIOFlag ioFlag)
virtual void ioParam_numOrientationsPre (enum ParamsIOFlag ioFlag)
virtual void ioParam_deltaThetaMax (enum ParamsIOFlag ioFlag)
virtual void ioParam_thetaMax (enum ParamsIOFlag ioFlag)
virtual void ioParam_numFlanks (enum ParamsIOFlag ioFlag)
virtual void ioParam_flankShift (enum ParamsIOFlag ioFlag)
virtual void ioParam_rotate (enum ParamsIOFlag ioFlag)
virtual void ioParam_bowtieFlag (enum ParamsIOFlag ioFlag)
virtual void ioParam_bowtieAngle (enum ParamsIOFlag ioFlag)

InitWeights Parameters

List of parameters needed by InitWeights class

virtual void ioParam_initWeightsFile (enum ParamsIOFlag ioFlag)
 initWeightsFile: A path to a weight pvp file to use for initializing the weights, which overrides the usual method of initializing weights defined by the class being instantiated. If the weights file has fewer features than the connection being initialized, the weights file is used for the lower-indexed features and the calcWeights method is used for the rest. If null or empty, calcWeights() is used to initialize all the weights.
virtual void ioParam_useListOfArborFiles (enum ParamsIOFlag ioFlag)
 useListOfArborFiles: A flag that indicates whether the initWeightsFile contains a single weight pvp file, or a list of files to be used for several arbors. The files inthe list can themselves have multiple arbors; each file isloaded in turn until the number of arbors in the connection is reached.
virtual void ioParam_combineWeightFiles (enum ParamsIOFlag ioFlag)
 combineWeightFiles: A flag that indicates whether the initWeightsFile is a list of weight files that should be combined.
virtual void ioParam_numWeightFiles (enum ParamsIOFlag ioFlag)
 numWeightFiles: If combineWeightFiles is set, specifies the number of weight files in the list of files specified by initWeightsFile.

Public Member Functions

 InitCocircWeights (char const *name, HyPerCol *hc)
virtual void calcWeights (float *dataStart, int patchIndex, int arborId) 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
int initializeWeights (PVPatch ***patches, float **dataStart, double *timef=NULL)
virtual int ioParamsFillGroup (enum ParamsIOFlag ioFlag) override
bool isUsingGPU () const
virtual int registerData (Checkpointer *checkpointer)
virtual int respond (std::shared_ptr< BaseMessage const > message) override

Protected Member Functions

virtual int allocateDataStructures ()
float calcDelta (int post, float dPost, float distHeadPreUnits)
void calcOtherParams (int patchIndex)
float calcThPost (int fPost)
void calculateThetas (int kfPre_tmp, int patchIndex)
virtual void calcWeights ()
float calcXDelta (int iPost)
float calcYDelta (int jPost)
bool checkBowtieAngle (float xp, float yp)
bool checkColorDiff (int fPost)
bool checkThetaDiff (float thPost)
virtual int cleanup ()
virtual int communicateInitInfo (CommunicateInitInfoMessage const *message) override
virtual int copyInitialStateToGPU ()
int initialize (char const *name, HyPerCol *hc)
virtual int initializeState ()
virtual int initRNGs (bool isKernel)
void ioParam_aspectRelatedParams (enum ParamsIOFlag ioFlag)
virtual void ioParam_cocircSelf (enum ParamsIOFlag ioFlag)
virtual void ioParam_deltaRadiusCurvature (enum ParamsIOFlag ioFlag)
virtual void ioParam_sigmaCocirc (enum ParamsIOFlag ioFlag)
virtual void ioParam_sigmaKurve (enum ParamsIOFlag ioFlag)
bool isSameLocOrSelf (float xDelta, float yDelta, int fPost)
int kernelIndexCalculations (int patchIndex)
bool needAspectParams ()
virtual int prepareCheckpointWrite ()
virtual int processCheckpointRead ()
void readCombinedWeightFiles (bool sharedWeights, float **dataStart, int numPatchesX, int numPatchesY, int numPatchesF, const char *fileOfWeightFiles, double *timestampPtr=nullptr)
void readListOfArborFiles (bool sharedWeights, float **dataStart, int numPatchesX, int numPatchesY, int numPatchesF, const char *listOfArborsFilename, double *timestampPtr=nullptr)
virtual int readStateFromCheckpoint (Checkpointer *checkpointer) override
void readWeightPvpFile (bool sharedWeights, float **dataStart, int numPatchesX, int numPatchesY, int numPatchesF, const char *weightPvpFile, int numArbors, double *timestampPtr=nullptr)
virtual int readWeights (bool sharedWeights, float **dataStart, int numPatchesX, int numPatchesY, int numPatchesF, const char *filename, double *timestampPtr=nullptr)
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)
virtual int zeroWeightsOutsideShrunkenPatch (PVPatch ***patches)

Protected Attributes

std::string description
float mAspect = 1.0f
float mBowtieAngle = 2.0f * PI
bool mBowtieFlag = false
HyPerConnmCallingConn = nullptr
bool mCombineWeightFiles = false
bool mDataStructuresAllocatedFlag = false
float mDeltaTheta
float mDeltaThetaMax = 2.0f * PI
float mDeltaThetaPost
float mDxPost
float mDyPost
int mFeaturePre
char * mFilename = nullptr
float mFlankShift = 0.0f
bool mInitialValuesSetFlag = false
bool mInitInfoCommunicatedFlag = false
int mNumFlanks = 1
int mNumOrientationsPost = 1
int mNumOrientationsPre = 1
int mNumWeightFiles = 1
HyPerLayermPostLayer = nullptr
HyPerLayermPreLayer = nullptr
float mRMax = 1.4f
float mRMaxSquared
float mRMin = 0.0f
float mRMinSquared
float mRotate = 0.0f
float mSigma = 0.8f
float mStrength = 1.0f
float mTheta0Post
float mThetaMax = 1.0f
float mThetaPre
bool mUseListOfArborFiles = false
bool mUsingGPUFlag = false
float mXDistHeadPreUnits
float mYDistHeadPreUnits
char * name = nullptr
HyPerColparent = nullptr

Private Member Functions

void addToGDist (float inc)
bool calcDistChordCocircKurvePreNKurvePost (float xDelta, float yDelta, int kfPost, float thPost)
float calcKurveAndSigmaKurve (int kf, int &nKurve, float &sigma_kurve_temp, float &kurve_tmp, bool &iPosKurve, bool &iSaddle)
float calcKurvePostAndSigmaKurvePost (int kfPost)
float calculateWeight ()
bool checkFlags (float dyP_shift, float dxP)
bool checkSameLoc (int kfPost)
void cocircCalcWeights (float *w_tmp)
int initialize_base ()
void initializeDistChordCocircKurvePreAndKurvePost ()
void updateCocircNChord (float thPost, float dyP_shift, float dxP, float cocircKurve_shift, float d2_shift)
void updategKurvePreNgKurvePost (float cocircKurve_shift)

Private Attributes

float gCocirc
float gDist
float gKurvePost
float gKurvePre
bool iPosKurvePost
bool iPosKurvePre
bool iSaddlePost
bool iSaddlePre
float kurvePost
float kurvePre
float mCocircSelf = false
float mDeltaRadiusCurvature = 1.0f
float mMinWeight = 0.0f
bool mPosKurveFlag = false
bool mSaddleFlag = false
float mSigmaCocirc = 0.5f * PI
float mSigmaKurve = 1.0f
int nKurvePost
int nKurvePre
float sigma_kurve_post
float sigma_kurve_post2
float sigma_kurve_pre
float sigma_kurve_pre2

Detailed Description

Definition at line 15 of file InitCocircWeights.hpp.

Member Function Documentation

bool PV::BaseObject::getDataStructuresAllocatedFlag ( )

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 ( )

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 ( )

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

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.

void PV::BaseObject::setDataStructuresAllocatedFlag ( )

This method sets mDataStructuresAllocatedFlag to true.

Definition at line 111 of file BaseObject.hpp.

void PV::BaseObject::setInitialValuesSetFlag ( )

This method sets the flag returned by getInitialValuesSetFlag to true.

Definition at line 116 of file BaseObject.hpp.

void PV::BaseObject::setInitInfoCommunicatedFlag ( )

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: