Dew MtxVec NET
TVec.DownSample Method
Summary
Downsamples vector values.

Class
TVec

Declaration
Function DownSample(Src: TMtxVec; Factor: integer; Phase: integer = 0): TVec;

Description
The methods copies only every Factor sample from the Src vector to the calling vector. The Length and Complex properties of the calling vector are set implicitly. The phase parameter determines the initial sample offset. Phase must be less than Factor.
 See Also 
UpSample 
TDenseMtxVec.UpSample 
PixelDownSample 

Example 1

var a,b: TVec; begin CreateIt(a,b); try b.SetIt(False,[0,0,0,0,1,2,3,4,5,6]); a.DownSample(b,2); // a = [0,0,1,3,5] finally FreeIt(a,b); end; end;

Copyright 2008 Dew Research
http://www.dewresearch.com