Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function UpSample(const Src: TMtxVec; Factor: Integer; Phase: Integer): TVec; | Inserts zeroes between consecutive vector values. |
| 2 | function UpSample(const Src: TMtxVec; Factor: Integer; SrcIndex: Integer; Index: Integer; Len: Integer; Phase: Integer): TMtxVec; | Inserts zeroes between consecutive array values. |
Overload 1: function UpSample(const Src: TMtxVec; Factor: Integer; Phase: Integer): TVec;
Inserts zeroes between consecutive vector values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec | |
| 2 | Factor | Integer | |
| 3 | Phase | Integer |
Result: stored in self (calling object), returns self for chaining
Inserts zeroes between consecutive vector values. The method copies the values from Src to the calling vector and places Factor-1 zeros between consecutive values. The Vector.Length and Vector.Complex properties of the calling vector are set implicitly. Phase parameter defines the initial sample offset and must be less than Factor.
var a,b: Vector;
begin
b.SetIt(False,[0,0,1,3,2]);
a.UpSample(b,2); // a = [0,0,0,0,1,0,3,0,2,0]
end;
Overload 2: function UpSample(const Src: TMtxVec; Factor: Integer; SrcIndex: Integer; Index: Integer; Len: Integer; Phase: Integer): TMtxVec;
Inserts zeroes between consecutive array values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | TMtxVec | |
| 2 | Factor | Integer | |
| 3 | SrcIndex | Integer | source start index |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
| 6 | Phase | Integer |
Result: stored in self (calling object), returns self for chaining
Copy Len values from Src starting at SrcIndex to the calling object starting at position Index and place Factor-1 zeros between consecutive values. Size and Vector.Complex properties of the calling object must be set explicitly. Phase parameter defines the initial sample offset and must be less then Factor. An exception is raised, if array borders are overrun/underrun.