Python Forum

Full Version: Mean of array
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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?