8 #include "L0NormLCAProbe.hpp" 9 #include "../layers/HyPerLCALayer.hpp" 13 L0NormLCAProbe::L0NormLCAProbe(
const char *name, HyPerCol *hc) {
18 L0NormLCAProbe::L0NormLCAProbe() { initialize_base(); }
28 if (targetLCALayer == NULL) {
29 if (parent->columnId() == 0) {
31 "%s: targetLayer \"%s\" is not an LCA layer.\n",
35 MPI_Barrier(parent->getCommunicator()->communicator());
39 if (parent->columnId() == 0) {
41 "%s: LCAProbes require targetLayer \"%s\" to use " 42 "VThresh etc. instead of " 43 "verticesV/verticesV.\n",
47 MPI_Barrier(parent->getCommunicator()->communicator());
50 float vThresh = targetLCALayer->getVThresh();
51 coefficient = vThresh * vThresh / 2.0f;
52 return Response::SUCCESS;
bool layerListsVerticesInParams() const
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override
const char * getTargetName()
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override
static bool completed(Status &a)