JAI's Histogram class has a method called "getMinErrorThreshold" that corresponds to some known algorithm. I would like to implement this algorithm in C given a Histogram object of my own and have failed to find sample pseudocode or code that implements this algorithm (or even a detailed description of how the algorithm computes the threhold).
Anyone know of any references/sample code I could look at?