Educate me please. What is the point of having a formula calculate the values? If it's a fixed set of values for the initial table, why not simply hard plug the numbers? Is there some kind of processing efficiency gained?
Having less parameters, also helps because they are more robust and reliable. Besides, when you hardwire numbers, there is always a risk to have some that do not change smoothly. In other words, having an equation is less prone to bugs. Last year I was able to tune score for passed pawns thanks to an equation I got that included square, material, and curvature. Only three (IIRC). Before it was a complete mess.
I am going to further and say that having hardwired tables is really insane. There is no reason why they cannot be initialized at start up. I still have some hardwired crap somewhere but those will have to go.
metax wrote:What is the best way to find formulas if you have a table already?
You have to have a mathematical intuition because it is basically trial and error. Having worked in the sciences helps, because when I see a certain plot I can say, oh, this looks like this type of equation. Polynomials are a quick and dirty solution (and division of polynomials). Exponentials, logs etc, are many that could be tried. If it is a simple case, y = a * x^n + b helps often (if n == 1 it is a straight line, if n > 1 or < 1 it will bend the curve upwards or downwards). IIRC I use that one for mobility score of different pieces. Each piece has their own equation determined by a, b and n.
With a table, it should be an equation in 2D i.e z = f(x,y) or value function or row and column. Someone posted here a website that helped to find equations to fit certain type of data like a year ago. Maybe we can find that post. I replied to it, so maybe searching my name will help. I do not think I book marked it (darn it!).
metax wrote:What is the best way to find formulas if you have a table already?
For simple issues I use Microsoft Excel, once you have a diagram you can add a "trendline" with certain features. It then also tells you the equation and sd. For more complex problems statistic programs are better.