Home > hit > auxiliary > hit_sample_hypercubes.m

hit_sample_hypercubes

PURPOSE ^

HIT_SAMPLE_HYPERCUBES Generate random points in a list of n-dimensional hypercubes intersected with a bounding polytope.

SYNOPSIS ^

function X=hit_sample_hypercubes(S,n,Bigregion)

DESCRIPTION ^

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.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 01-Dec-2005 10:54:38 by m2html © 2003