1
Guys, how can I average between n vector positions? For example, given an input form vector
vet = [[10,10,10,10],[10,20,10,10],[10,15,10,10]]
I need the function to return a new vector with the average of the values of each position of each vector, i.e.:
res = [(10+10+10)/3, (10+20+15)/3,...]
The first position of the resulting vector will be the mean of the first positions of the input vector subvectors, the second position of the resulting vector will be the mean of the values of the second positions of the input subvectors and so on!
I am programming in python!
In fact what is needed is the average between, for example: average between the first position of the 3 vectors, then the average between the values of the second positions between the vectors, and so on
– Rafael Alencar