Summary
Inserts zeroes between consecutive vector values.
Class
TVec
Declaration
Function UpSample(Src: TMtxVec; Factor: integer; Phase: integer = 0): TVec;
Description
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
Length and
Complex properties of the calling vector are set implicitly. Phase parameter defines the initial sample offset and must be less than Factor.
Example 1
var a,b: TVec;
begin
CreateIt(a,b);
try
b.SetIt(False,[0,0,1,3,2]);
a.UpSample(b,2); // a = [0,0,0,0,1,0,3,0,2,0]
finally
FreeIt(a,b);
end;
end;
| Copyright 2008 Dew Research |
http://www.dewresearch.com