In[]:=
GridGraph[{30,30}]
Out[]=
In[]:=
Graphics[HilbertCurve[4]]
Out[]=
In[]:=
AdjacencyMatrix[GridGraph[{30,30}]]//MatrixPlot
Out[]=
In[]:=
Map[Mean[Flatten[#]]&,Partition[AdjacencyMatrix[GridGraph[{30,30}]],{100,100}],{2}]//MatrixPlot
Out[]=
In[]:=
rarray=RandomInteger[1,{50,50}];
In[]:=
ArrayPlot[rarray]
Out[]=
In[]:=
Times@@Dimensions[rarray]
Out[]=
2500
In[]:=
Map[Mean[Flatten[#]]&,Partition[rarray,{10,10}],{2}];
In[]:=
Times@@Dimensions[%15]
Out[]=
25
In[]:=
ArrayPlot[%15]
Out[]=
In[]:=
HilbertCurve[6]
Out[]=
In[]:=
Length[First[HilbertCurve[6]]]
Out[]=
4096
Sample according to Hilbert curve
First[HilbertCurve[6]]+1