From 1839529288c3ab9c9c18ffea551b399234a7fbfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Ry=C3=BBk=29?= Date: Tue, 11 Jul 2023 16:40:42 +0200 Subject: [PATCH] Add member to dprior class. Name of the parameter. --- matlab/@dprior/dprior.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matlab/@dprior/dprior.m b/matlab/@dprior/dprior.m index a5739ba42..d53c6012e 100644 --- a/matlab/@dprior/dprior.m +++ b/matlab/@dprior/dprior.m @@ -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;