Function to find the optimum parameter for derivative estimation (embedding or spar according to derivative estimation method chosen)
Useful links