¡@

Home 

python Programming Glossary: nsmall

Grouping 2D numpy array in average

http://stackoverflow.com/questions/4624112/grouping-2d-numpy-array-in-average

array so test it with yours import numpy as np Nbig 100 Nsmall 20 big np.arange Nbig Nbig .reshape Nbig Nbig # 100x100 small.. Nbig Nbig .reshape Nbig Nbig # 100x100 small big.reshape Nsmall Nbig Nsmall Nsmall Nbig Nsmall .mean 3 .mean 1 An example with.. .reshape Nbig Nbig # 100x100 small big.reshape Nsmall Nbig Nsmall Nsmall Nbig Nsmall .mean 3 .mean 1 An example with 6x6 3x3 Nbig..