clVector.DownSample Method

function DownSample(const Src: TOpenCLMtxVec; Factor: Integer; Phase: Integer): TOpenCLVector;

Downsamples vector values.

#NameTypeDescription
1SrcTOpenCLMtxVec
2FactorInteger
3PhaseInteger

Returns: TOpenCLVector

Remarks:

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

Examples
var a,b: clVector;
begin
    b.CopyFromArray(TSingleArray.Create(0,0,0,0,1,2,3,4,5,6));
    a.DownSample(b,2); // a = [0,0,1,3,5]
end;
See Also: clVector.UpSample, TOpenCLVector.UpSample