22 lines
476 B
C++
22 lines
476 B
C++
//
|
|
// Created by baiguwen on 2022/4/20.
|
|
//
|
|
|
|
#ifndef FAULT_SIMULATION_ALGORITHM_MAIN_STEP_H
|
|
#define FAULT_SIMULATION_ALGORITHM_MAIN_STEP_H
|
|
#include <algorithm.hpp>
|
|
|
|
class step : 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_base_{0};
|
|
};
|
|
#endif //FAULT_SIMULATION_ALGORITHM_MAIN_STEP_H
|