The KAPPA HISTAT application uses a data histogram to calculate the median
of a data set. It says that it also calculates the mode but it actually
seems to calculate a fudge factor and in my data is a bad value. Is there
a reason why it can't simply write out the peak of the histogram?
We're using the MODE for simple sky subtraction of SCUBA-2 data and
currently this is done by calling HISTOGRAM and then calling STATS on the
histogram output. Seems a bit klunky when we need to do all this in 0.1
second.
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
|