Commit Graph

24 Commits (e32b87d4b3143772889240ce963f33db25487e92)

Author SHA1 Message Date
Stéphane Adjemia (Scylla) e32b87d4b3
Streamlined gamrnd routine.
Give access to all the implemented algorithms through the third argument. The
last argument is a structure with two fields `large` and `small`. The first
field specifies the algorithm to be used for α>1 while the second field defines
the algorithm to be used for α ∈ (0,1).

Default algorithms are:

 - Cheng (1977) for α>1,
 - Johnk (1964)  α ∈ (0,1).
2018-12-15 16:48:24 +01:00
Stéphane Adjemia (Scylla) 162c8ab7d0
Set default value for the second hyperparameter. 2018-12-15 16:48:24 +01:00
Stéphane Adjemia (Scylla) 426c63a735
Created namespace for gamrnd routines.
Also fixed implementation of Jonk's algorithm.
2018-12-15 16:48:23 +01:00
Sébastien Villemot 57f6183d2f Move some functions out of missing/stats/, since they are only needed for MATLAB 2018-06-06 13:02:42 +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
Stéphane Adjemian (Charybdis) a53636e24e Fixed copyright notices. 2017-05-16 14:11:15 +02:00
Stéphane Adjemian (Charybdis) 88e1701289 Removed useless commas and semicolons. 2017-05-16 13:24:46 +02:00
Johannes Pfeifer ce4ab7f7d8 Unit test wblinv.m under Octave: adjust tolerance 2017-01-18 10:59:53 +01:00
Johannes Pfeifer fccd164926 Provide lower tolerance to Octave's quadv function as integration otherwise stops prematurely 2016-11-10 17:33:18 +01:00
Stéphane Adjemian (Lupi) 33d35bc3c5 Added quantile routine in missing.
This is missing if the stats toolbox is not available. Integration test
TeX/fs2000_corr_ME.mod was failing because of its absence.
2016-06-16 14:33:57 +02:00
Stéphane Adjemian(Charybdis) 7c53ea1e96 Fixed unit tests.
(cherry picked from commit 2cdfc0518350e4f26dd406b1730f2cf20ce29e07)
2016-04-14 17:21:37 +02:00
Johannes Pfeifer 6dddd7a8d4 Add corr.m to missing/stats 2016-04-09 15:22:40 +02:00
Stéphane Adjemian (Charybdis) 5834ed4446 Added checks for the input arguments of wblinv routine. 2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) d676c67f03 Added CDF for the Weibull distribution. 2015-12-11 18:50:54 +01:00
Stéphane Adjemian (Charybdis) 02d53b5d1d Use statistics toolbox if available for the Weibull inverse CDF. 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 90fa92f8a9 Adds chi2cdf function if Statistics toolbox is missing 2013-09-26 10:19:05 +02:00
Michel Juillard 0359c2801d modifies alternative function for betapdf() for large values of a and b 2011-03-17 20:13:09 +01:00
Sébastien Villemot 02652f6eb8 Updated copyright notices 2011-02-04 17:27:33 +01:00
Sébastien Villemot 02fd6e668c Add error message for non-implemented features of gamrnd.m 2011-01-13 12:28:44 +01:00
sebastien c0c0d48fed Fix gamrnd.m: for big integer values of parameter a, the gaussian approximation was incorrect (closes #67)
git-svn-id: https://www.dynare.org/svn/dynare/trunk@3281 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-12-21 11:08:59 +00: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
sebastien 4e9b23363a Reorganized the way we deal with functions which exist under only some versions of MATLAB and/or some versions of Octave:
* Created a directory matlab/missing to store them under subdirectories
* Add the needed subdirectories to the path from dynare_config.m
* Moved content of matlab/matlab/ and matlab/octave/ to matlab/missing/*/
* matlab/missing/ordeig/ordeig.m: new name of matlab/my_ordeig
* matlab/missing/ordschur/ordschur.m: fake replacement, displays an error message
* Removed old matlab/matlab/ and matlab/octave/ directories


git-svn-id: https://www.dynare.org/svn/dynare/trunk@2805 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-07-03 10:20:42 +00:00