Function Parameterization and Artificial Neural Networks for equilibrium parameters recovery in Asdex-Upgrade: a comparison