8 #ifndef NORMALIZEMULTIPLY_HPP_ 9 #define NORMALIZEMULTIPLY_HPP_ 11 #include "NormalizeBase.hpp" 12 #include "components/Weights.hpp" 68 float getRMinX() {
return mRMinX; }
69 float getRMinY() {
return mRMinY; }
70 float getNormalizeCutoff() {
return mNormalizeCutoff; }
71 bool getNormalizeFromPostPerspectiveFlag() {
return mNormalizeFromPostPerspective; }
73 virtual int normalizeWeights()
override;
77 int initialize(
const char *name,
HyPerCol *hc);
82 float *dataPatchStart,
98 float *dataPatchStart,
106 static void normalizePatch(
float *patchData,
int weightsPerPatch,
float multiplier);
112 bool mNonnegativeConstraintFlag =
false;
113 float mNormalizeCutoff = 0.0f;
114 bool mNormalizeFromPostPerspective =
false;
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
virtual void ioParam_nonnegativeConstraintFlag(enum ParamsIOFlag ioFlag)
int applyRMin(float *dataPatchStart, float rMinX, float rMinY, int nxp, int nyp, int xPatchStride, int yPatchStride)
virtual void ioParam_normalize_cutoff(enum ParamsIOFlag ioFlag)
virtual void ioParam_normalizeFromPostPerspective(enum ParamsIOFlag ioFlag)
virtual void ioParam_rMinX(enum ParamsIOFlag ioFlag)
virtual void ioParam_rMinY(enum ParamsIOFlag ioFlag)
int applyThreshold(float *dataPatchStart, int weights_in_patch, float wMax)