Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Float feed(List<Float> x) {
- float distance = 0;
- for (int i = 0; i < this.n; i++) {
- distance += Math.pow((w.get(i) - x.get(i)), 2);
- }
- return (float) Math.sqrt(distance);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement