- improved parameters
- added 5th diffusion step
This commit is contained in:
+17
-7
@@ -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})
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user