TOpenCLMatrix.DownSample Method

function DownSample(const Src: TOpenCLMtxVec; Factor: Integer; SrcIndex: Integer; Index: Integer; Len: Integer; Phase: Integer): TOpenCLMtxVec;

Downsamples object values.

#NameTypeDescription
1SrcTOpenCLMtxVecsource TOpenCLVector or TOpenCLMatrix
2FactorInteger
3SrcIndexIntegersource start index
4IndexIntegerstart index
5LenIntegerelement count
6PhaseInteger

Result: stored in self (calling object), returns self for chaining

Remarks:

Copy only every Factor sample from Src starting at SrcIndex up to Len to the calling object starting at Index. The phase parameter determines the initial sample offset. Phase must be less then Factor. Size and TOpenCLBase.Complex properties of the calling object are set implicitly. An exception is raised if array borders are overrun/underrun.