Home
Manual
Packages
Global Index
Keywords
Quick Reference
|
all functions - v
vsplit1D
|
vsplit partitions vector n^2 subregions
it returns for the first componant an array of n^2 pointers corresponding to the different regions
the index points to an index of the componants which fall in
region i and for the second componant an array describing the edge vector
of each region
EXEMPLE x=random(25000);
w =vsplit1D(x,span(0,1,5));
pl,x(*w(3,1)),color=-9;
nn=10; pp=dimsof(w)(2);
SEE ALSO split, bsplit, splitb, esplit
interpreted function, defined at ./split.i line 222
|
vsplit2D
|
vsplit partitions vector n^2 subregions
it returns for the first componant an array of n^2 pointers corresponding to the different regions
the index points to an index of the componants which fall in
region i and for the second componant an array describing the edge vector
of each region
EXEMPLE x=random(25000); y=random(25000);
w =vsplit2D(x,y,span(0,1,3),span(0,1,3));
pl,x(*w(3,1)),y(*w(3,1)),color=-9;
nn=10; pp=dimsof(w)(2);
u=array(0.,nn,nn,pp);
for(i=1;i<=pp;i++) {
tt=[x(*w(i,1)),y(*w(i,1))];
indx=(*w(i,2));
u(,,,i)=histo2d(tt,span(indx(1,1),indx(2,1),nn+1),
span(indx(1,2),indx(2,2),nn+1));
}
v=splitb(u);
pli,v(,avg,);
try also
w =vsplit(x,y,span(0,0.5,2),span(0.25,0.5,2));
to look at small region around a given point.
SEE ALSO split, bsplit, splitb, esplit
interpreted function, defined at ./split.i line 162
|
vsplit3D
|
vsplit partitions vector n^3 subregions
it returns for the first componant an array of n^3 pointers corresponding to the different regions
the index points to an index of the componants which fall in
region i and for the second componant an array describing the edge vector
of each region
EXEMPLE x=random(250000); y=random(250000); z=random(250000);
w =vsplit(x,y,z,span(0,1,3),span(0,1,3),span(0,1,3));
pl,x(*w(3,1)),y(*w(3,1)),color=-9;
nn=10; pp=dimsof(w)(2);
u=array(0.,nn,nn,nn,pp);
for(i=1;i<=pp;i++) {
tt=[x(*w(i,1)),y(*w(i,1)),z(*w(i,1))];
indx=(*w(i,2));
u(,,,i)=histo3d(tt,span(indx(1,1),indx(2,1),nn+1),
span(indx(1,2),indx(2,2),nn+1),
span(indx(1,3),indx(2,3),nn+1));
}
v=splitb(u);
pli,v(,avg,);
try also
w =vsplit(x,y,z,span(0,0.5,2),span(0.25,0.5,2),span(0,0.5,2));
to look at small region around a given point.
SEE ALSO split, bsplit, splitb, esplit
interpreted function, defined at ./split.i line 98
|
|