Re:Imperative vs. Declarative (2013)
by hcarvalhoalves on Wednesday December 03, 2014 @12:00PM
(#8694830)
Sounds like a regression problem? The actual algorithm will depend on how well you need to approximate the function, the nature and amount of example data.
http://en.wikipedia.org/wiki/Machine_learning#Approaches