# Java Distribution Functions

A java library of distributions functions based on the R distribution functions.

NOTE: New users may prefer to use the JDistLib available at https://sourceforge.net/projects/jdistlib/ . That is a fresh implementation of these distributions based on the R code base which is being actively maintained. Version 1 has been provided with bug fixes for current users of this interface.

This code based on an auto translation. The translation isn't entirely pretty (especially since some of the C code was originally translated from Fortran), but it seems to work. Classes implement the PDF, CDF, and (usually) quantile and random variate generation for the following distributions:

beta | hypergeometric | normal
binomial | logistic | poisson
cauchy | lognormal | signrank
chisquare | negative_binomial | t
exponential | noncentral_beta | tukey
f | noncentral_chisquare | uniform
gamma | noncentral_f | weibull
geometric | noncentral_t | wilcox

The java code, compiled classes, and (rudimentary) javadoc documentation is available as a jar file from

> http://sourceforge.net/project/showfiles.php?group_id=16634

Comments:

- These functions compile without error, but are mostly untested.
- The javadoc documentation is very rudimentary. Additional documentation is available in the comments copied from the original c code.
- Other than grouping the PDF, CDF, etc into a single class for each distribution, the files don't (yet) make much use of OO design.
- Most of the credit for these function rightly goes to Ross Ihaka for putting the C library together.

Patches, comments, etc welcome. Please submit at the SourceForge project page

## News

### 2020-08-10 - Version 1.0 released with major bug fixes.

### 2020-08-01 - Fixed many errors in distributions thanks to Pierre Gruet.

### 2007-05-19 - Updated to use jakarta commons libraries and with JUnit testing.

### 2002-04-19 - Now Hosted At