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