[SciPy-User] Help optimizing an algorithm

Chris Weisiger cweisiger at msg.ucsf.edu
Mon Feb 4 11:19:36 EST 2013


On Fri, Feb 1, 2013 at 7:47 PM, Charles R Harris
<charlesr.harris at gmail.com>wrote:

>
> So the light source is held constant here and only the integration time
> varied? Due to pipelining, it is possible that polynomial fits might be as
> fast as the linear splines you are using. In any case, a polynomial fit to
> the inverse function could be used to sample the output to input conversion
> at equally spaced output values and the result stored. With proper scaling
> you could then determine the table index and offset for the interpolation
> using divmod.
>
>
You're correct that we're just varying the exposure time while the light
intensity is constant. I tried doing polynomial fits, but even upwards of
10th-degree polynomials still gave terrible fit qualities.

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20130204/9f6a4d55/attachment.html>


More information about the SciPy-User mailing list