11 lines
281 B
C
11 lines
281 B
C
#pragma once
|
|
#include <TestProject/RNG/model/IModel.h>
|
|
#include <nlohmann/json.hpp>
|
|
using json = nlohmann::json;
|
|
|
|
struct ConstantModel : IModel {
|
|
float c;
|
|
ConstantModel(const json& params, float defaultVal) : c(defaultVal) {}
|
|
float evaluate(size_t) override { return c; }
|
|
};
|