Start on function to fit arbitrary nonlinearity to data.