


HIT_SAMPLE_HYPERCUBES Generate random points in a list of n-dimensional hypercubes intersected with a bounding polytope.
-------------------------------------------------------------------------
DESCRIPTION
-------------------------------------------------------------------------
X=hit_sample_hypercubes(S,n,Bigregion)
Example: X=sampling_hypercubes...
({{1,[0 0]',20},{2,[1,-2]',500}},2,Bigregion)
-------------------------------------------------------------------------
INPUT
-------------------------------------------------------------------------
S{i} is a cell {l,c,np}
l: lenght on each edge of the i-th hypercube.
c: center of the i-th hypercube.
np: number of points to be extracted in the i-th hypercube.
n: dimension of each hypercube.
Bigregion: n-dimensional bounding polytope.
-------------------------------------------------------------------------
OUTPUT
-------------------------------------------------------------------------
X(i,:) i-th sampled point.
-------------------------------------------------------------------------
COMMENTS
-------------------------------------------------------------------------
This function does not work if the bounding polytope and *some* hypercube
have an empty intersection.