8 #ifndef POOLINGCONN_HPP_ 9 #define POOLINGCONN_HPP_ 11 #include "components/ImpliedWeightsPair.hpp" 12 #include "components/PatchSize.hpp" 13 #include "connections/BaseConnection.hpp" 26 int getPatchSizeX()
const {
return mPatchSize->getPatchSizeX(); }
27 int getPatchSizeY()
const {
return mPatchSize->getPatchSizeY(); }
28 int getPatchSizeF()
const {
return mPatchSize->getPatchSizeF(); }
31 int getNumDataPatches()
const {
return mWeightsPair->getPreWeights()->
getNumDataPatches(); }
32 int getNumGeometryPatches()
const {
33 return mWeightsPair->getPreWeights()->
getGeometry()->getNumPatches();
35 Patch const *getPatch(
int kPre) {
return &mWeightsPair->getPreWeights()->
getPatch(kPre); }
36 int getPatchStrideX()
const {
return mWeightsPair->getPreWeights()->
getPatchStrideX(); }
37 int getPatchStrideY()
const {
return mWeightsPair->getPreWeights()->
getPatchStrideY(); }
38 int getPatchStrideF()
const {
return mWeightsPair->getPreWeights()->
getPatchStrideF(); }
43 int initialize(
char const *name,
HyPerCol *hc);
45 virtual void defineComponents()
override;
61 #endif // POOLINGCONN_HPP_
int getPatchStrideF() const
int getNumDataPatches() const
Patch const & getPatch(int patchIndex) const
std::shared_ptr< PatchGeometry > getGeometry() const
int getPatchStrideY() const
int getPatchStrideX() const