Squashed 'sglib/' changes from 470987c..c2c1f15

c2c1f15 gpcgerm_sample: mc can now be selected by option mode=mc instead of default
8d1f879 added option to publish_to_latex to select the pdflatex command
cb91102 Added latex_filter to publish_to_latex
6bf9325 Added possibility to gpcbasis_create to create from a germ
f2ac4f9 Added gpcgerm_pdf and gpcgerm_cdf functions
8dc16af Moved files from 'robust stats' into statistics and demo respectively
99a174d Added semicircle and arcsine to gendist_create and used in polysys_dist for gpc
83ed02b Extended the gendist_stdnor function to compose this method if not provided
bfbb1d7 Just some cleanup for internal consistency
401a440 Added sampling function for lognormal distribution
57f8641 Added the chi-squared distribution to statistics
48275dd Added extra message to check_type if arg was empty
c2f9402 Renamed gpc_sample to gpcgerm_sample
8456eb7 Renamed gpc_norm to gpcbasis_norm
775f2a7 Updated todo file
1794fe0 Fixed a bug in the normal_sample function (rand->randn)
d095031 Fixed a bug in the example for gpc_integrate
714534a Changed the polysys_sample_rv function to use polysys_dist
18275cc Added the polysys_dist function and unittest
489a17a Extended munit to also check for equal inf's or nan's
0879233 Updated todo file
67ab63b Fixed comments and Contents file in statistics
38c176e Added functions for setting bounds of distributions
dbe493d Added sampling functions for gendists
9d61763 Deactivated a deprecation warning in R2014
8db5097 Made gendist_get_args private (should have been from the beginning)
1726212 Simplified the interface to gendist_fix_moments (sorry not backwards compatible)
6ac7ebd Fixed comments for most of the gendist functions
5e6fb0c Added gendist_create and get_args functions and changed other gendist_funcs accordingly
9eb055a Added get_args function for gendists
a899104 Fixed a bug in kernel_density, that made it very slow for large data sets
e904b2e Added invcdf for gendist functions plus unittest.

git-subtree-dir: sglib
git-subtree-split: c2c1f1563dc6682cfa834d8fe357a2cf665d51a6
Merge commit '630d5d40cf8d3441e2329b511f2b941670fa1293'