Advertisement
Guest User

Untitled

a guest
Jun 26th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public Float feed(List<Float> x) {
  2. float distance = 0;
  3.  
  4. for (int i = 0; i < this.n; i++) {
  5. distance += Math.pow((w.get(i) - x.get(i)), 2);
  6. }
  7.  
  8. return (float) Math.sqrt(distance);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement