Hartigan's Dip Statistic

The code below implements Hartigan's dip statistic in Matlab. The code was adapted from Hartigan's original Fortran code by Ferenc Mechler and was hosted briefly on Dario Ringach's website, which is where I obtained it. The zip-file contains the 3 m-files and 2 pdfs of Hartigan's original papers that are individually linked below.