Files
2024-09-04 10:25:47 +08:00

27 lines
578 B
C++

//
// Created by fly on 2022/4/6.
//
#ifndef FAULT_SIMULATION_ALGORITHM_TEMPERATURE_DRIFT_H
#define FAULT_SIMULATION_ALGORITHM_TEMPERATURE_DRIFT_H
#include <algorithm.hpp>
class temperature_drift : public algorithm {
public:
void set_config(nlohmann::json const &config) override;
nlohmann::json config() override;
double eval(double value) override;
protected:
nlohmann::json config_{};
double amplitude_{0};
double amplitude_base_{0};
uint64_t eval_time_{0};
};
#endif //FAULT_SIMULATION_ALGORITHM_TEMPERATURE_DRIFT_H