Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: block average with non-integers
Replies: 1   Last Post: Mar 15, 2013 7:39 PM

 Messages: [ Previous | Next ]
 Jonathan W Smith Posts: 90 Registered: 12/17/10
block average with non-integers
Posted: Mar 15, 2013 5:50 PM

I have an issue.

I have an array with 165 rows and 332 columns. I want to degrade it (i.e. take the average of blocks of the array or make the resolution more course). This is so I apply an array with 41 rows and 71 columns on it. You might say the latter array could be upgraded but that procedure would infuse false data into it.

Lets take array A(165,332) and apply BlockMean
When I use testing = BlockMean(A, 4,4), the resultant matrix has a size of 41 and 83 but not the 41 and 71 that I need.

332/71 = 4.67 , but obviously when I tried BlockMean(A,4,4.67) I obtain an error because non - integers cannot be used.

Also 71 x 4 = 284. This would put me short of 332. How can I take the average of array A that can be averaged for an array with 41 rows and 71 columns?

Thanks

Jonathan

Date Subject Author
3/15/13 Jonathan W Smith
3/15/13 dpb