Data Manipulation Functions

From LIBISIS
Revision as of 15:25, 17 March 2008 by Dean Whittaker (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Data manipulation functions change the data in some way, such as scaling or flipping it. The functions available are

>> wnew = shift(w, xshift)
>> wwnew = shift_x(ww, xshift)
>> wwnew = shift_y(ww, yshift)
>> wwnew = shift_xy(ww, xshift, yshift)
>> wnew = scale(w, factor)
>> wwnew = scale_x(ww, factor)
>> wwnew = scale_y(ww, factor)
>> wnew = flip(w)
>> wwnew = flip_x(ww)
>> wwnew = flip_y(ww)

Shift Functions

These functions add a value to one of the independent variable arrays (x or y), leaving any related data (such as the signal data) untouched. For instance if an x array, [10, 20, 30, 40, 50], is shifted by 2 the output x array will be [12, 22, 32, 42, 52].

 >> shift_x(ww, xshift)
>> shift_y(ww,yshift)
>> shift_xy(ww,xshift,yshift)
>> shift(w, xshift)


Example:


>> wout = shift_x(ww, 4)


Every x value in wout will have 4 added to them


Scale Functions

Multiplies one of the independent variable arrays (x or y) by a constant. These functions

Flip Functions