TOpenCLVector DownSample(TOpenCLMtxVec Src, Int32 Factor, Int32 Phase)
Downsamples vector values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TOpenCLMtxVec | source TOpenCLVector or TOpenCLMatrix |
| 2 | Factor | Int32 | |
| 3 | Phase | Int32 |
Returns: TOpenCLVector
Remarks:
The methods copies only every Factor sample from the Src vector to the calling vector. The Dew.Math.TOpenCLBase.Length and Dew.Math.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
clVector a;
clVector b;
b.CopyFromArray(TSingleArray.Create(0,0,0,0,1,2,3,4,5,6));
a.DownSample(b,2); // a = new double[] {0,0,1,3,5}
See Also: clVector.UpSample, TOpenCLVector.UpSample