User Tools

Site Tools


wiki:gradient

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:gradient [2020/03/09 14:55]
abigpickle created
wiki:gradient [2020/03/09 15:27] (current)
abigpickle
Line 31: Line 31:
  sum += -2 * x[i] * (y[i] - (m * x[i] + b));  sum += -2 * x[i] * (y[i] - (m * x[i] + b));
  }   }
- return s;+ return sum;
 } }
 </code></pre> </code></pre>
Line 40: Line 40:
  sum += -2 * (y[i] - (m * x[i] + b));  sum += -2 * (y[i] - (m * x[i] + b));
  }   }
- return s;+ return sum;
 } }
 </code></pre> </code></pre>
wiki/gradient.txt ยท Last modified: 2020/03/09 15:27 by abigpickle