1 function obj=initgradw(obj)
\r
2 % Intializes the gradient with respect to w. Used by, for instance, the EKF filter.
\r
3 % The result is found in the 'gradw' property.
\r
5 % Syntax: (* = optional)
\r
7 % obj = initgradw(obj);
\r
12 % Data object to be differentiated.
\r
18 % Toolbox for nonlinear filtering.
\r
19 % Copyright (C) 2005 Jakob Rosén <jakob.rosen@gmail.com>
\r
21 % This program is free software; you can redistribute it and/or
\r
22 % modify it under the terms of the GNU General Public License
\r
23 % as published by the Free Software Foundation; either version 2
\r
24 % of the License, or (at your option) any later version.
\r
26 % This program is distributed in the hope that it will be useful,
\r
27 % but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
28 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
29 % GNU General Public License for more details.
\r
31 % You should have received a copy of the GNU General Public License
\r
32 % along with this program; if not, write to the Free Software
\r
33 % Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
\r
35 [obj.gradw_idxstart, obj.gradw_idxlength]=initgrad(obj,4); % 4 means 'w'
\r