GNU Radio's CDMA Package
|
Insert a specified (complex) vector periodically in the (complex) input stream. More...
#include <vector_insert2.h>
Public Types | |
typedef boost::shared_ptr< vector_insert2 > | sptr |
Static Public Member Functions | |
static sptr | make (const std::vector< gr_complex > data, int periodicity, int offset) |
Return a shared_ptr to a new instance of cdma::vector_insert2. More... | |
Insert a specified (complex) vector periodically in the (complex) input stream.
For example, with data=(x,y), periodicity=3, and offset=1, the input and output streams will look like
input: abcdefghijk...
output: axybcdxyefgxyhijxyk...
typedef boost::shared_ptr<vector_insert2> gr::cdma::vector_insert2::sptr |
|
static |
Return a shared_ptr to a new instance of cdma::vector_insert2.
To avoid accidental use of raw pointers, cdma::vector_insert2's constructor is in a private implementation class. cdma::vector_insert2::make is the public interface for creating new instances.
data | the vector to be inserted |
periodicity | the period of the input stream. |
offset | the offset within the input stream that the vector will be inserted. Takes values in {0,...,periodicity} |