Curve fitting was found to not be the way to do this. DarknessHistogramChecker implements what makes sense instead.