Skip to content

Commit 9702ee8

Browse files
author
Johan Dahlin
committed
updated licence to GPL 2
Former-commit-id: 0f07904 [formerly 0f07904 [formerly 31ae779]] Former-commit-id: 24b08a79ba188167564454ecdaac4bf005c5d173 Former-commit-id: b5d67da
1 parent f73a97b commit 9702ee8

23 files changed

+469
-52
lines changed

matlab/example1_lgss.m

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,21 @@
33
% Example of fully-adapted particle filtering
44
% in a linear Gaussian state space model
55
%
6-
% (c) 2015 Johan Dahlin
7-
% johan.dahlin (at) liu.se
6+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
7+
%
8+
% This program is free software; you can redistribute it and/or modify
9+
% it under the terms of the GNU General Public License as published by
10+
% the Free Software Foundation; either version 2 of the License, or
11+
% (at your option) any later version.
12+
%
13+
% This program is distributed in the hope that it will be useful,
14+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
% GNU General Public License for more details.
17+
%
18+
% You should have received a copy of the GNU General Public License along
19+
% with this program; if not, write to the Free Software Foundation, Inc.,
20+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
821
%
922
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1023

matlab/example2_lgss.m

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,21 @@
44
%
55
% Main script
66
%
7-
% (c) 2015 Johan Dahlin
8-
% johan.dahlin (at) liu.se
7+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
8+
%
9+
% This program is free software; you can redistribute it and/or modify
10+
% it under the terms of the GNU General Public License as published by
11+
% the Free Software Foundation; either version 2 of the License, or
12+
% (at your option) any later version.
13+
%
14+
% This program is distributed in the hope that it will be useful,
15+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
% GNU General Public License for more details.
18+
%
19+
% You should have received a copy of the GNU General Public License along
20+
% with this program; if not, write to the Free Software Foundation, Inc.,
21+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
922
%
1023
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1124

matlab/example3_sv.m

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
%
33
% Example of particle Metropolis-Hastings in a stochastic volatility model
44
%
5-
% (c) 2015 Johan Dahlin
6-
% johan.dahlin (at) liu.se
5+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
6+
%
7+
% This program is free software; you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation; either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% This program is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License along
18+
% with this program; if not, write to the Free Software Foundation, Inc.,
19+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
720
%
821
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
922

matlab/example4_sv.m

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
%
33
% Example of particle Metropolis-Hastings in a stochastic volatility model
44
%
5-
% (c) 2015 Johan Dahlin
6-
% johan.dahlin (at) liu.se
5+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
6+
%
7+
% This program is free software; you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation; either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% This program is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License along
18+
% with this program; if not, write to the Free Software Foundation, Inc.,
19+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
720
%
821
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
922

matlab/generateData.m

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
%
33
% Generates data from the LGSS model with parameters (phi,sigmav,sigmae)
44
%
5-
% (c) 2015 Johan Dahlin
6-
% johan.dahlin (at) liu.se
5+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
6+
%
7+
% This program is free software; you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation; either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% This program is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License along
18+
% with this program; if not, write to the Free Software Foundation, Inc.,
19+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
720
%
821
%
922
% Inputs:
@@ -39,4 +52,4 @@
3952

4053
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4154
% End of file
42-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
55+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

matlab/kf.m

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,21 @@
44
%
55
% Bootstrap particle filter
66
%
7-
% (c) 2015 Johan Dahlin
8-
% johan.dahlin (at) liu.se
7+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
8+
%
9+
% This program is free software; you can redistribute it and/or modify
10+
% it under the terms of the GNU General Public License as published by
11+
% the Free Software Foundation; either version 2 of the License, or
12+
% (at your option) any later version.
13+
%
14+
% This program is distributed in the hope that it will be useful,
15+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
% GNU General Public License for more details.
18+
%
19+
% You should have received a copy of the GNU General Public License along
20+
% with this program; if not, write to the Free Software Foundation, Inc.,
21+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
922
%
1023
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1124

@@ -44,4 +57,4 @@
4457

4558
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4659
% End of file
47-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
60+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

matlab/pmh.m

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
%
33
% Particle Metropolis-Hastings (PMH) for the LGSS model
44
%
5-
% (c) 2015 Johan Dahlin
6-
% johan.dahlin (at) liu.se
5+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
6+
%
7+
% This program is free software; you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation; either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% This program is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License along
18+
% with this program; if not, write to the Free Software Foundation, Inc.,
19+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
720
%
821
%
922
% Inputs:
@@ -96,4 +109,4 @@
96109

97110
function[out] = dnorm(x, mu, sigma)
98111
out = -0.5 .* log(2 * pi) - 0.5 .* log( sigma.^2 ) - 0.5 ./ sigma.^2 .* ( x - mu ).^2;
99-
end
112+
end

matlab/pmh_sv.m

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
%
33
% Particle Metropolis-Hastings (PMH) for the SV model
44
%
5-
% (c) 2015 Johan Dahlin
6-
% johan.dahlin (at) liu.se
5+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
6+
%
7+
% This program is free software; you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation; either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% This program is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License along
18+
% with this program; if not, write to the Free Software Foundation, Inc.,
19+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
720
%
821
%
922
% Inputs:
@@ -107,4 +120,4 @@
107120

108121
function[out] = dgamma(x, a, b)
109122
out = a * log(b) - gammaln(a) + (a-1) * log(x) - b * x;
110-
end
123+
end

matlab/sm.m

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
%
33
% Fully-adapted particle filter for the linear Gaussian SSM
44
%
5-
% (c) 2015 Johan Dahlin
6-
% johan.dahlin (at) liu.se
5+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
6+
%
7+
% This program is free software; you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation; either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% This program is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License along
18+
% with this program; if not, write to the Free Software Foundation, Inc.,
19+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
720
%
821
%
922
% Inputs:
@@ -89,4 +102,4 @@
89102

90103
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
91104
% End of file
92-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
105+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

matlab/sm_sv.m

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22
%
33
% Bootstrap particle filter for the SV model
44
%
5-
% (c) 2015 Johan Dahlin
6-
% johan.dahlin (at) liu.se
5+
% Copyright (C) 2015 Johan Dahlin < johan.dahlin (at) liu.se >
6+
%
7+
% This program is free software; you can redistribute it and/or modify
8+
% it under the terms of the GNU General Public License as published by
9+
% the Free Software Foundation; either version 2 of the License, or
10+
% (at your option) any later version.
11+
%
12+
% This program is distributed in the hope that it will be useful,
13+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
% GNU General Public License for more details.
16+
%
17+
% You should have received a copy of the GNU General Public License along
18+
% with this program; if not, write to the Free Software Foundation, Inc.,
19+
% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
720
%
821
%
922
% Inputs:
@@ -92,4 +105,4 @@
92105

93106
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
94107
% End of file
95-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
108+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

0 commit comments

Comments
 (0)