Fixed a bug in datamin calculation.
authorRicardo Zanmar <rzanmar@gmail.com>
Mon, 27 Jun 2011 12:49:26 +0000 (14:49 +0200)
committerRicardo Zanmar <rzanmar@gmail.com>
Mon, 27 Jun 2011 12:49:26 +0000 (14:49 +0200)
commit3bc8a4f7cb300baae082ae5400ff1e8ac133c410
tree982f011c230e2907ba08e675dd586e8f8a6088f0
parent8016a49c4ed464da7f8298b279b6b6e03b685db4
Fixed a bug in datamin calculation.

I expected k == 0 when the mostfreq value ends abruptly (single peak).
Instead it got to k = -1 at the end of the loop. This was only visible
in some images with strange histograms.
loader_fits.c