User Tools

Site Tools


jvs:cigal:manual:chapter3:sample

CIGAL Reference Manual, Chapter 3 (Functions): sample

Sample -- Sample data values along a vector path

usage: result = sample(npts,vpath,svarb,navg,flag,lwidth)

SAMPLE does two things: it generates a set of sampling points based on its NPTS and VPATH arguments, and then it samples data values in the SVARB variable at those points.

SAMPLE can either use the explicit vector coordinates contained in VPATH as sampling points or, if NPTS is specified, it samples NPTS evenly spaced positions along the path, interpolating as necessary between explicit vector coordinates.

SAMPLE's output depends on its arguments and the type of output variable to which it is being assigned. If the output variable is an array, the array is filled with the sampled intensity values. If the output variable is a vector list, SAMPLE generates an output vector for each sampled coordinate with the sampled values stored as the vector intensities. If no explicit target variable is specified,

If VPATH is a number, the path to sample is taken as all stored graphics vectors starting at number VPATH (i.e., VECS(,VPATH:)).

See Also:
SIMAGE(4)

CIGAL Home, CIGAL Manual, Functions List, Manual Help

jvs/cigal/manual/chapter3/sample.txt · Last modified: 2023/02/23 18:43 (external edit)