Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Mean(polia){
- var value = [];
- polia[0].forEach((x,i) => {value.push(0)});
- polia.forEach((x,i) => {x.forEach((y, j) => {value[j] += y})});
- value.forEach((x,i) => {value[i] = x / polia.length});
- return value;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement