Best funcion basis