bool updateParams (ap_uint <32> iterationIndex) update weight and intercept based on gradient Parameters: iterationIndex iteraton index.