29 lines
631 B
C++
29 lines
631 B
C++
//
|
|
// Created by baiguwen on 2022/4/23.
|
|
//
|
|
|
|
#ifndef FAULT_SIMULATION_ALGORITHM_PERIODIC_INTERFERENCE_H
|
|
#define FAULT_SIMULATION_ALGORITHM_PERIODIC_INTERFERENCE_H
|
|
|
|
|
|
#include <algorithm.hpp>
|
|
|
|
class periodic_interference : public algorithm {
|
|
public:
|
|
void set_config(const nlohmann::json &config) override;
|
|
|
|
nlohmann::json config() override;
|
|
|
|
double eval(double value) override;
|
|
|
|
protected:
|
|
nlohmann::json config_{};
|
|
double amplitude_{0};
|
|
double amplitude_base_{0};
|
|
double cycle_{0};
|
|
uint64_t eval_time_{0};
|
|
};
|
|
|
|
|
|
#endif //FAULT_SIMULATION_ALGORITHM_PERIODIC_INTERFERENCE_H
|