Add member to dprior class.

Name of the parameter.
remove-particles-submodule
Stéphane Adjemian (Ryûk) 2023-07-11 16:40:42 +02:00
parent b5cbc397a6
commit 1839529288
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@ classdef dprior < handle
p11 = []; % Prior median
lb = []; % Truncated prior lower bound.
ub = []; % Truncated prior upper bound.
name = {}; % Name of the parameter
iduniform = []; % Index for the uniform priors.
idgaussian = []; % Index for the gaussian priors.
idgamma = []; % Index for the gamma priors.
@ -87,6 +88,9 @@ classdef dprior < handle
if isfield(BayesInfo, 'p11')
o.p11 = BayesInfo.p11;
end
if isfield(BayesInfo, 'name')
o.name = BayesInfo.name;
end
bounds = prior_bounds(BayesInfo, PriorTrunc);
o.lb = bounds.lb;
o.ub = bounds.ub;