Commit Graph

19 Commits (5b72a3041c4a25ade8fd5d39e36729db59b12822)

Author SHA1 Message Date
Stéphane Adjemian (Guts) 5b72a3041c
Use new unit tests interface. 2023-01-02 22:58:20 +01:00
Sébastien Villemot 10af04c6d8
Use Unicode copyright symbol (in UTF-8 encoding) in all source files
It is now supported by the MATLAB editor (as of R2022a).

The old ASCII notation is left in some files that we copy as-is from other
sources (e.g. in the contrib/ and m4/ subdirectories).

The particles submodule is not updated at this point, because it is in an
inconsistent state.

[skip ci]
2022-04-13 14:54:25 +02:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Stéphane Adjemian (Charybdis) 1bf81c9f5a Fixed copyright notices. 2017-05-18 18:36:38 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Houtan Bastani 710e8ef3a5 fix copyright dates for 2016 2016-02-23 14:04:04 +01:00
Stéphane Adjemian (Hermes) 0459d1bcd4 Fixed bug in Weibull prior.
Fixed inconsistencies in the ordering of the hyperparameters (shape and scale).
2016-02-11 21:35:29 +01:00
Stéphane Adjemian (Charybdis) d9cb5da148 Added unit test. 2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) 32475c90b0 Fixed typo in unit test. 2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) 1a07f95218 Fixed bug in the unit test for the mode of beta density. 2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) 0a4b9bfb3d Added missing semicolon. 2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) 09498d30eb Updated header doc. 2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) 3c42f7e362 Added try-catch blocks in unit tests. 2015-12-11 18:50:54 +01:00
Johannes Pfeifer 8c9736f93f Add unit tests for compute_prior_mode.m
(cherry picked from commit 7d9c3ee365aba25c131b423596a1446eafd9c6ec)
2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) 5fb1b1cc23 Added Weibull prior. 2015-12-04 14:50:44 +01:00
Johannes Pfeifer 19fdb309ac Fix computation of prior mode for uniform distribution
While this code is never actually used, we return the prior mean, which is directly given by the first hyperparameter.
2015-07-27 10:19:02 +02:00
sebastien 502e3e1df8 Beautified MATLAB code (Unix newline convention + Emacs indentation), except: AIM, swz, particle
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3250 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-16 17:17:34 +00:00
stepan 2dee7d4c9e Bug fix. The mode of the Inverted Gamma -- type 1 distribution was wrong.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2722 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-06-05 08:30:26 +00:00
stepan aa31417a05 Efficiency & Cosmetic changes related to the design of bayestopt_ and
the computation of the prior density.

bayestopt_.p1 is always the prior mean
bayestopt_.p2 is always the prior standard deviation
bayestopt_.p3 is unchanged
bayestopt_.p4 is unchanged
bayestopt_.p5 [new field] is the prior mode
bayestopt_.p6 [new field] is the first hyper-parameter of the prior density
bayestopt_.p7 [new field] is the second hyper-parameter of the prior density
 
These fields are defined in  set_prior and are never changed after. In
the previous version of Dynare,  the hyper parameters of the densities
were  updated at  each iteration  of the  optimization routine  or the
metropolis.

Removed fields pmean and pstdev.

Vectorized the code in priordens.

Fixed the bug mentionned by Gianni. If a (logged) density is evaluated
outside the  prior domain, the  output of priordens if  minus infinity
(instead of a complex number).


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2556 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-04-06 14:38:37 +00:00