- improved parameters

- added 5th diffusion step
This commit is contained in:
2025-11-13 17:53:03 +01:00
parent 399b2ac59f
commit 1a3ca7d337
3 changed files with 61 additions and 47 deletions
+17 -7
View File
@@ -6,16 +6,27 @@ class Param
{
std::string m_name;
std::string m_unit;
public:
typedef struct _sparam_info_t
{
double pmin, pmax, pvalue, pinterval, pcenter, scenter, base, kexp;
} param_info_t;
param_info_t m_param_info;
public:
Param(
std::string name,
std::string unit,
param_info_t param
)
: m_name(name)
, m_param_info(param)
{
}
Param(
std::string name,
@@ -23,14 +34,13 @@ class Param
double pmin,
double pmax,
double pvalue,
double base=1.0,
double kexp=1.0,
double pinterval=1.0,
double pcenter=-1.0,
double scenter=0.0,
double base=1.0,
double kexp=1.0
double scenter=0.0
)
: m_name(name)
, m_param_info({pmin, pmax, pvalue, pinterval, pcenter, scenter, base, kexp})
: Param(name, unit, {pmin, pmax, pvalue, pinterval, pcenter, scenter, base, kexp})
{
}