The rate of convergence of the generalized gradient descent method