Commit Graph

75 Commits (7dd2dd5e24a343fbeaf3522ea5e535c27d8b9f95)

Author SHA1 Message Date
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
Johannes Pfeifer c72d7e0ffd mode_check.m: have debug mode provide explicit message instead of just the code 2021-10-25 16:54:34 +02:00
Johannes Pfeifer 459fce927b mode_check.m: take care of almost binding bounds 2021-08-20 13:29:37 +02:00
Johannes Pfeifer 58b336b263 mode_check.m: fix logical condition that may otherwise lead to 0 size of interval 2021-08-20 13:09:06 +02:00
Sébastien Villemot 766fff88f6
Use secure URL for link to GNU licenses 2021-06-09 17:35:05 +02:00
Johannes Pfeifer da3943beba Make sure output is saved in dname-folder
That's where other functions are looking for them
2020-12-16 22:41:55 +01:00
Johannes Pfeifer 312d053ae1 Use LaTeX labels in figures 2020-06-17 21:48:25 +02:00
Sébastien Villemot 49dc997073
Global reindentation of MATLAB code (excluding submodules)
Also convert to Unix end-of-lines, and remove trailing whitespaces.
2019-12-20 16:30:27 +01:00
Johannes Pfeifer 8e5fd8dc4e Move creation of subfolder outside of TeX-check
Required if we only want the figure
2019-11-21 11:58:16 +01:00
Johannes Pfeifer a59534a284 Move remaining figures and related TeX output from main folder to graphs 2019-11-21 10:14:48 +01:00
Sébastien Villemot 89a3e94cbf
Use true/false instead of 1/0 for boolean options
This is more elegant, and makes it easier to distinguish them from integer
options.

Also simplify test expressions for these boolean options.
2019-03-19 15:21:16 +01:00
Johannes Pfeifer ef797eec0f mode_check.m: account for case where bounds are infinite and not plots are shown 2018-01-24 23:21:10 +01:00
Johannes Pfeifer 86e646488c mode_check.m: fix case where parameter is exactly 0
In this case, interval length was 0, crashing the plotting
2017-10-04 16:49:09 +02:00
Stéphane Adjemian (Charybdis) 5417b27ac7 Fixed indentation of matlab files. 2017-05-16 15:10:20 +02:00
Stéphane Adjemian (Charybdis) 88e1701289 Removed useless commas and semicolons. 2017-05-16 13:24:46 +02:00
Houtan Bastani e5f1d20221 change dyn_figure to take a nodisplay and graph_format arguments as opposed to options_. closes #1415 2017-03-23 17:59:05 +01:00
Houtan Bastani 2aa85f978a change dyn_figure to take a nodisplay argument as opposed to options_. #1415 2017-03-23 14:30:16 +01:00
Johannes Pfeifer 6b82788180 Display reason for mode_check-problems when debugging is enabled 2016-10-09 22:16:26 +02:00
Houtan Bastani 2a6b3caa34 when saving, use .mat file extension because Octave doesn’t support it by default 2016-09-26 11:00:41 +02:00
Johannes Pfeifer 46450c6f1f Change textwidth depending on number of subplots
Prevents overblown figures
2016-08-23 17:22:41 +02:00
Johannes Pfeifer 73afe7d02f Change fixed LaTeX figure width into \textwidth scaling
Improves readability
2016-08-23 17:22:41 +02:00
Johannes Pfeifer 329b91d717 Harmonize output of objective functions
Closes #1149
Mirrors 1ad8df4635
2016-06-15 00:30:28 +02:00
Houtan Bastani b454c28096 fix latex compilation on linux. #1207 2016-06-14 11:37:16 +02:00
Johannes Pfeifer 09e03e7a6f Move closing of file in mode_check.m out of the loop
Code will otherwise crash with more than one figure to plot.
2015-11-28 14:07:36 +01:00
Michel Juillard 035adeb89e Revert "More fixing related to objective_function_penalty_base"
This reverts commit 1ad8df4635.
2015-10-09 14:23:31 +02:00
Michel Juillard 1ad8df4635 More fixing related to objective_function_penalty_base 2015-10-08 20:57:00 +02:00
Johannes Pfeifer ee66f892ca Add missing fclose to mode_check.m 2015-08-17 14:42:52 +02:00
MichelJuillard f94910173d Merge pull request #937 from JohannesPfeifer/graph_fix
Various fixes related to graphs and eps-TeX-loaders
2015-07-20 14:36:20 +02:00
Stéphane Adjemian (Lupi) 29589c062f Moved mode_check data file (see commit fe41b64c84) in a subfolder. 2015-07-08 17:18:27 +02:00
Stéphane Adjemian (Lupi) fe41b64c84 Save on disk the data produced by mode_check. 2015-07-08 16:05:38 +02:00
Johannes Pfeifer bcc1008d3d Only create eps-loaders if eps-figures have been created (leaves table TeX-output unaffected) 2015-06-08 17:57:15 +02:00
Johannes Pfeifer 3c3b255025 Clarify that output of mode_check.m is minus likelihood/posterior 2015-05-11 17:39:26 +02:00
Johannes Pfeifer e76f81740f Make sure that no variable is named hessian. 2015-05-10 08:17:40 +02:00
Johannes Pfeifer 8cc9fbd69a Remove hard-coded coloring of legend in mode_check.m
Now displays correct colors with new Matlab plot interface (>2014a)
2015-04-02 20:52:49 +02:00
Stéphane Adjemian (Karaba) f48566aeae Fixed prior bounds (according to the doc in master branch).
* Second  and  third  positional  arguments  after the  name  of  the
   estimated  parameter   in  the  estimated_params   block  are  only
   considered in the optimization stage (not in the MCMC)

 * Do not  store bounds  in bayestopt_, because  bounds do  not always
   reflect restrictions implied by prior shapes.

 * prior_bounds routine  returns a structure  (with fields lb  and ub)
   instead of a matrix.
2014-10-20 16:18:54 +02:00
Stéphane Adjemian (Charybdis) 880bb58aef Fixed mode_check and prior_posterior_statistics routines (added dataset_info as an input). 2014-06-17 10:19:07 +02:00
Stéphane Adjemian (Charybdis) ddd95361ba Cosmetic changes. Added isoctave function to replace exist('OCTAVE_VERSION'). 2013-11-04 10:54:45 +01:00
Sébastien Villemot b4f8532bea Merge pull request #441 from JohannesPfeifer/mode_check
Bugfix for mode_check and display of parameters out of bounds
2013-08-12 03:31:50 -07:00
Stéphane Adjemian (Charybdis) 4052d4ccaf Cosmetic changes. Use skipline() instead of disp(' '). 2013-07-10 17:12:34 +02:00
Johannes Pfeifer ea5d2e90b2 Take care of parameter estimates at prior bounds in check plots
Symmetric plots for parameters at the prior bounds resulted in nothing being printed. This commit then switches to asymmetric plots for those parameters and plots a red line signifying the bound.
2013-07-05 23:46:05 +02:00
Stéphane Adjemian (Charybdis) 340bcc2739 Added an option for setting the number of points where the posterior kernel is evaluated when using mode_check. Reorganized the options_ global structure wrt mode_check. 2013-06-20 17:19:44 +02:00
Stéphane Adjemian (Charybdis) 39ef86f118 Partially reverted commit 06237375db. 2013-06-18 22:30:49 +02:00
Frédéric Karamé 06237375db Added the possibility to set the number of points in mode_check for computing the transversal cuts. 2013-06-18 16:16:56 +02:00
Sébastien Villemot 61485ab809 Fix copyright notices 2013-06-12 17:04:46 +02:00
Marco Ratto 26602ecf3c Bug fix for negative values of x(kk) 2013-05-27 12:00:39 +02:00
Marco Ratto 7bef23f1b3 Allow asymmetric mode check plots, using the new option
mode_check_symmetric_plots (=1 at default, i.e. current behaviour)
2013-05-23 11:37:00 +02:00
Johannes Pfeifer 4c8f3a89cc Make graph titles more expressive 2013-03-17 22:45:50 +01:00
Sébastien Villemot 1f9cea669a Update copyright notices 2012-06-08 18:22:34 +02:00
Marco Ratto 7991c3937c Fixed output list of objective function (to cope with new list for analytic derivatives). 2012-05-30 11:26:07 +02:00
Johannes Pfeifer 4c255cf2ae Starts implementing Ticket 216. Most plotting and figure is now controlled by the functions dyn_figure and dyn_saveas, allowing for option_.nodisplay to suppress the displaying of figures and using options_.graph_format to control the format of saved figures. 2012-04-25 11:47:40 +02:00