y =
buffer (x, n, p, opt)
¶[y, z, opt] =
buffer (…)
¶Buffer a signal into a data frame. The arguments to buffer
are
The data to be buffered.
The number of rows in the produced data buffer. This is an positive integer value and must be supplied.
An integer less than n that specifies the under- or overlap between column in the data frame. The default value of p is 0.
In the case of an overlap, opt can be either a vector of length p or the string ’nodelay’. If opt is a vector, then the first p entries in y will be filled with these values. If opt is the string ’nodelay’, then the first value of y corresponds to the first value of x.
In the can of an underlap, opt must be an integer between 0 and
-p
. The represents the initial underlap of the first
column of y.
The default value for opt the vector zeros (1, p)
in the case of an overlap, or 0 otherwise.
In the case of a single output argument, y will be padded with zeros to fill the missing values in the data frame. With two output arguments z is the remaining data that has not been used in the current data frame.
Likewise, the output opt is the overlap, or underlap that might
be used for a future call to code
to allow continuous buffering.
Package: signal