From 2b4ff5c43f4c3a81f05df4ab2150fb755a2fdf41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Karam=C3=A9?=
 <frederic.karame@univ-lemans.fr>
Date: Thu, 17 Oct 2024 16:18:32 +0200
Subject: [PATCH] Clarify variable name.

---
 matlab/default_option_values.m                      | 2 +-
 matlab/estimation/check_posterior_sampler_options.m | 4 ++--
 matlab/estimation/online/online_auxiliary_filter.m  | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/matlab/default_option_values.m b/matlab/default_option_values.m
index 928895146..00748792f 100644
--- a/matlab/default_option_values.m
+++ b/matlab/default_option_values.m
@@ -515,7 +515,7 @@ options_.posterior_sampler_options.dsmh.tau = 10 ;
 options_.posterior_sampler_options.online.particles= 5000 ;
 options_.posterior_sampler_options.online.liu_west_delta = 0.99 ;
 options_.posterior_sampler_options.online.liu_west_max_resampling_tries = 5000 ;
-options_.posterior_sampler_options.online.systematic_resampling = false;
+options_.posterior_sampler_options.online.second_resampling = false;
 
 options_.trace_plot_ma = 200;
 options_.mh_autocorrelation_function_size = 30;
diff --git a/matlab/estimation/check_posterior_sampler_options.m b/matlab/estimation/check_posterior_sampler_options.m
index ccf43fed1..fe93f77a6 100644
--- a/matlab/estimation/check_posterior_sampler_options.m
+++ b/matlab/estimation/check_posterior_sampler_options.m
@@ -459,8 +459,8 @@ if init
                           posterior_sampler_options.liu_west_delta = options_list{i,2};
                       case 'liu_west_max_resampling_tries'
                           posterior_sampler_options.liu_west_max_resampling_tries = options_list{i,2};
-                      case 'systematic_resampling'
-                          posterior_sampler_options.systematic_resampling = options_list{i,2};
+                      case 'second_resampling'
+                          posterior_sampler_options.second_resampling = options_list{i,2};
                       otherwise
                           warning(['online: Unknown option (' options_list{i,1} ')!'])
                   end
diff --git a/matlab/estimation/online/online_auxiliary_filter.m b/matlab/estimation/online/online_auxiliary_filter.m
index fbd693638..dc467f732 100644
--- a/matlab/estimation/online/online_auxiliary_filter.m
+++ b/matlab/estimation/online/online_auxiliary_filter.m
@@ -313,7 +313,7 @@ for t=1:sample_size
         variance_update = false;
     end
     % final resampling (not advised)
-    if online_opt.systematic_resampling
+    if online_opt.second_resampling
         indx = kitagawa(weights);
         StateVectors = StateVectors(:,indx) ;
         if pruning
-- 
GitLab