The gamrnd fallback under matlab/missing/stats/ does not work under Octave
because the +gamrnd/ folder is not accessible (it has the same name as the
function, which does not work under Octave).
Instead of fixing this, rather make the statistics toolbox a requirement, since
anyways it is very easy to obtain under Octave.
Accordingly:
- do not try to run the unit tests of matlab/missing/stats/ under Octave
- merge the matlab/missing/stats-matlab/ into matlab/missing/stats/, since this
directory is now MATLAB-only.
Also:
- move matlab/distributions/+gamrnd/ under matlab/missing/stats/ for
consistency
- in the manual: remove obsolete link to Octave downloads on the Dynare
website; update URL of Octave Forge
Closes#1638
* created a directory "matlab/matlab", for functions missing under Matlab (but existing under Octave)
* created a directory "matlab/octave", for functions missing under Octave (but existing under Matlab)
* moved "mex/octave/rcond.m" to "matlab/octave/"
* moved "matlab/rows.m" to "matlab/matlab/rows.m" (Octave has builtin "rows")
* renamed "matlab/cols.m" to "matlab/matlab/columns.m" (Octave has builtin "columns")
* moved "matlab/distributions/toolbox" to "matlab/matlab/stats"
* adapted "dynare_config.m" to reflect these changes
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2628 ac1d8469-bf42-47a9-8791-bf33cf982152
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
distribution (gamma, inverse gamma 1 and 2, beta) given the mode and
the variance.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2535 ac1d8469-bf42-47a9-8791-bf33cf982152
+ Changed headers.
+ Allows vector of coefficients when calling the Beta random generator.
git-svn-id: https://www.dynare.org/svn/dynare/trunk@2422 ac1d8469-bf42-47a9-8791-bf33cf982152