Fixed texinfo header.

time-shift
Stéphane Adjemian (Charybdis) 2012-03-30 11:55:01 +02:00
parent 795d0fce16
commit 2db0c98b9b
1 changed files with 18 additions and 19 deletions

View File

@ -1,26 +1,28 @@
function new_particles = univariate_smooth_resmp(weights,particles,number)
% Smooth Resamples particles.
function resampled_particles = univariate_smooth_resampling(weights,particles,number_of_partitions)
% Smooth Resampling of the particles.
%@info:
%! @deftypefn {Function File} {@var{indx} =} resample (@var{weights}, @var{method})
%! @anchor{particle/resample}
%! @deftypefn {Function File} {@var{resampled_particles} =} univariate_smooth_resampling (@var{weights}, @var{particles}, @var{number_of_partitions})
%! @anchor{particle/univariate_smooth_resampling}
%! @sp 1
%! Resamples particles.
%! Smooth Resampling of the particles (univariate version).
%! @sp 2
%! @strong{Inputs}
%! @sp 1
%! @table @ @var
%! @item weights
%! n*1 vector of doubles, particles' weights.
%! @item method
%! string equal to 'residual' or 'traditional'.
%! @item particles
%! n*1 vector of doubles, particles.
%! @item number_of_partitions
%! Integer scalar.
%! @end table
%! @sp 2
%! @strong{Outputs}
%! @sp 1
%! @table @ @var
%! @item indx
%! n*1 vector of intergers, indices.
%! n*1 vector of doubles, resampled particles.
%! @end table
%! @sp 2
%! @strong{This function is called by:}
@ -28,13 +30,11 @@ function new_particles = univariate_smooth_resmp(weights,particles,number)
%! @ref{particle/sequantial_importance_particle_filter}
%! @sp 2
%! @strong{This function calls:}
%! @sp 1
%! @ref{residual_resampling}, @ref{traditional_resampling}
%! @sp 2
%! @end deftypefn
%@eod:
% Copyright (C) 2011, 2012 Dynare Team
% Copyright (C) 2012 Dynare Team
%
% This file is part of Dynare.
%
@ -77,4 +77,3 @@ while i<=number
new_particles(i) = (particles(j+1) - particles(j))*u_star + particles(j) ;
i = i+1 ;
end