Python Forum
Mean of array - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Mean of array (/thread-17425.html)



Mean of array - Monti - Apr-10-2019

Hi all,
i am new here and hope i can find some help.

i have a two dimensional array. in the first column is the distance in mm and in the second column are height values.
i want to calculate the mean of the z values every centimeter. the amount of values per centimeter is not constant.
i dont have a clue how to do this.
i hope you can help me
Thanks
Monti


RE: Mean of array - scidam - Apr-11-2019

I don't understand what means "z values every centimeter"? We have,e.g. column of distances, named 'd', column of heights, named 'h',
but what about "z"? I couldn't imagine structure of the data you have.
May be you are talking about applying slicing window of variable size that depends on, e.g., height values?