139 void SetFailLow(
double val) {
if (val > 0.0) fail_low =
true;
else fail_low =
false;}
140 void SetFailHigh(
double val) {
if (val > 0.0) fail_high =
true;
else fail_high =
false;}
141 void SetFailStuck(
double val) {
if (val > 0.0) fail_stuck =
true;
else fail_stuck =
false;}
143 double GetFailLow(
void)
const {
if (fail_low)
return 1.0;
else return 0.0;}
144 double GetFailHigh(
void)
const {
if (fail_high)
return 1.0;
else return 0.0;}
145 double GetFailStuck(
void)
const {
if (fail_stuck)
return 1.0;
else return 0.0;}
146 int GetQuantized(
void)
const {
return quantized;}
148 int GetNoiseRandomSeed(
void)
const;
149 void SetNoiseRandomSeed(
int seed);
151 bool Run (
void)
override;
152 void ResetPastStates(
void)
override;
155 enum eNoiseType {ePercent=0, eAbsolute} NoiseType;
156 enum eDistributionType {eUniform=0, eGaussian} DistributionType;
163 double noise_variance;
169 double PreviousInput;
177 std::string quant_property;
179 void ProcessSensorSignal(
void);
190 std::optional<unsigned int> RandomSeed;
191 std::shared_ptr<RandomNumberGenerator> generator;
192 void Debug(
int from)
override;