Sounds like a good use of a third order polynomial to do a statistical fit!