generates random variates from over 870 univariate distributions
Updated 09 Feb 2012
Copyright (c) 2012, James Huntley
Copyright (c) 2004, Ben Barrowes
Copyright (c) 2008, Thomas Winiecki
Copyright (c) 2009, Damien Garcia
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution
* Neither the name of the Retired nor the names
of its contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
This code package provides a framework for generating random samples of univariate distribution functions. It has an Excel database that currently lists over 870 distributions, their parameters as well as references to source material. Using a GUI, users can select from any of these discrete or continuous distributions, specify parameter values and specify the number of samples desired. The program will graph the samples, the PDF/PMF, CDF and a histogram. These samples may also be saved to a user-named local file. The Excel database is readily extensible and a User Guide is included with the package.
Given that this is the author's first submission to Matlab Central as well as first attempt at a Matlab GUI and that there are just under 2000 files in this package, there are bound to be many bugs. The author welcomes any corrections, additions, comments or suggestions.
Thank you very much for such a great work!
I made cdf and pdf for Poisson-Pascal distribution and then find your file. You have one more input argument called "nmax"; and whatever value you enter for "nmax" does not change the result. I think it is redundant. At least my code worked without that auxiliary argument:
Maybe this comment will help you to improve the distribution treasure :)
i am looking for k-distribution but i can't find it, can anyone help me?
How about Distribution of sum of non-identically but independly distrubuted uniform RV, is there anyone who have function for this distrubution.
The Gauss Hypergeom function pfq works pretty fast , compared with the one of MATLAB. But the performance may not be satisfactory, especially when integration is involved.
With time, and some improvements, this could be a File Exchange treasure. Here is some good documentation on how to share data between workspaces, creating guis, program development.
I think Robert Howrd is being a bit harsh. This package definitely does not deserve 2 stars.
It is obviously the culmination of many years of work by the author and as such deserves much respect. So, I'm ok with having given one more rating of 5 stars to balance his 2 stars.
On the other hand, this could be an exceptionally excellent package, and it is unfortunately restricted from being so by some sub-par programming techniques, as mentioned above. So the overall rank should just be average right now.
I'd like to see less use of global variables in your programming of the GUI. It's very difficult to sort through what is causing the problems due to these. Also, I'm not sure, but I think it is generally frowned upon in application programming. It consumes more memory than needed at any given time.
Also, it appears that your reliance on xlsread is causing problems. xlsRead will call the excel server as part of it's internal program. However, not everyone has excel. In fact, I prefer to use the open source office suite called LibreOffice.
Could use some basic improvements.
1) Prepend package files to prevent naming conflicts
2) Update help documentation to reflect Matlab standards
3) GUI does seem to have some problems. A readme file would help guide the user.
Otherwise, an impressive collection.
GUI is too large for screen, plots do not show up and are cut off. No way to adjust. Not possible to use as is. GUI design needs much improvement. No README file.
Inspired by: Special Functions math library, Gaussian Hypergeometric Function, erfz, SpecialFunctions.zip, Generalized Hypergeometric Function, Smooth Differentiation, Computation of Special Functions, Complex scaled complementary error function, Confluent hypergeometric function (Kummer function), Gauss Hypergeometric Function, Simpson's rule for numerical integration
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.
You can also select a location from the following list: