PetaVision  Alpha
KneeTimeScaleProbe.cpp
1 #include "KneeTimeScaleProbe.hpp"
2 #include "components/KneeTimeScaleController.hpp"
3 
4 namespace PV {
5 
6 KneeTimeScaleProbe::KneeTimeScaleProbe(char const *name, HyPerCol *hc) { initialize(name, hc); }
7 
8 int KneeTimeScaleProbe::ioParamsFillGroup(enum ParamsIOFlag ioFlag) {
10  ioParam_kneeThresh(ioFlag);
11  ioParam_kneeSlope(ioFlag);
12  return status;
13 }
14 
15 void KneeTimeScaleProbe::ioParam_kneeThresh(enum ParamsIOFlag ioFlag) {
16  parent->parameters()->ioParamValue(ioFlag, name, "kneeThresh", &mKneeThresh, mKneeThresh);
17 }
18 
19 void KneeTimeScaleProbe::ioParam_kneeSlope(enum ParamsIOFlag ioFlag) {
20  parent->parameters()->ioParamValue(ioFlag, name, "kneeSlope", &mKneeSlope, mKneeSlope);
21 }
22 
23 void KneeTimeScaleProbe::allocateTimeScaleController() {
24  mAdaptiveTimeScaleController = new KneeTimeScaleController(
25  getName(),
26  getNumValues(),
27  mBaseMax,
28  mBaseMin,
29  tauFactor,
30  mGrowthFactor,
31  mWriteTimeScaleFieldnames,
32  parent->getCommunicator(),
33  mKneeThresh,
34  mKneeSlope);
35 }
36 }
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
int getNumValues()
Definition: BaseProbe.hpp:61