GNU Radio's FILTER_AVX2 Package
gr::filter_avx2::pfb_channelizer_ccf Class Referenceabstract

<+description of block+> More...

#include <pfb_channelizer_ccf.h>

Inheritance diagram for gr::filter_avx2::pfb_channelizer_ccf:

Public Types

typedef boost::shared_ptr
< pfb_channelizer_ccf
sptr
 

Public Member Functions

virtual void set_taps (const std::vector< float > &taps)=0
 
virtual void print_taps ()=0
 
virtual std::vector
< std::vector< float > > 
taps () const =0
 
virtual void set_channel_map (const std::vector< int > &map)=0
 
virtual std::vector< int > channel_map () const =0
 

Static Public Member Functions

static sptr make (unsigned int numchans, const std::vector< float > &taps, float oversample_rate)
 

Detailed Description

<+description of block+>

Member Typedef Documentation

Member Function Documentation

virtual std::vector<int> gr::filter_avx2::pfb_channelizer_ccf::channel_map ( ) const
pure virtual

Gets the current channel map.

Implemented in gr::filter_avx2::pfb_channelizer_ccf_impl.

static sptr gr::filter_avx2::pfb_channelizer_ccf::make ( unsigned int  numchans,
const std::vector< float > &  taps,
float  oversample_rate 
)
static

Build the polyphase filterbank decimator.

Parameters
numchans(unsigned integer) Specifies the number of channels M
taps(vector/list of floats) The prototype filter to populate the filterbank.
oversample_rate(float) The over sampling rate is the ratio of the the actual output sampling rate to the normal output sampling rate. It must be rationally related to the number of channels as N/i for i in [1,N], which gives an outputsample rate of [fs/N, fs] where fs is the input sample rate and N is the number of channels.

For example, for 6 channels with fs = 6000 Hz, the normal rateis 6000/6 = 1000 Hz. Allowable oversampling rates are 6/6, 6/5, 6/4, 6/3, 6/2, and 6/1 where the output sample rate of a 6/1 oversample ratio is 6000 Hz, or 6 times the normal 1000 Hz.

virtual void gr::filter_avx2::pfb_channelizer_ccf::print_taps ( )
pure virtual

Print all of the filterbank taps to screen.

Implemented in gr::filter_avx2::pfb_channelizer_ccf_impl.

virtual void gr::filter_avx2::pfb_channelizer_ccf::set_channel_map ( const std::vector< int > &  map)
pure virtual

Set the channel map. Channels are numbers as:

N/2+1 | ... | N-1 | 0 | 1 |  2 | ... | N/2

<----------------— 0 -----------------—> freq

So output stream 0 comes from channel 0, etc. Setting a new channel map allows the user to specify which channel in frequency he/she wants to got to which output stream.

The map should have the same number of elements as the number of output connections from the block. The minimum value of the map is 0 (for the 0th channel) and the maximum number is N-1 where N is the number of channels.

We specify M as the number of output connections made where M <= N, so only M out of N channels are driven to an output stream. The number of items in the channel map should be at least M long. If there are more channels specified, any value in the map over M-1 will be ignored. If the size of the map is less than M the behavior is unknown (we don't wish to check every entry into the work function).

This means that if the channelizer is splitting the signal up into N channels but only M channels are specified in the map (where M <= N), then M output streams must be connected and the map and the channel numbers used must be less than N-1. Output channel number can be reused, too. By default, the map is [0...M-1] with M = N.

Implemented in gr::filter_avx2::pfb_channelizer_ccf_impl.

virtual void gr::filter_avx2::pfb_channelizer_ccf::set_taps ( const std::vector< float > &  taps)
pure virtual

Resets the filterbank's filter taps with the new prototype filter

Parameters
taps(vector/list of floats) The prototype filter to populate the filterbank.

Implemented in gr::filter_avx2::pfb_channelizer_ccf_impl.

virtual std::vector<std::vector<float> > gr::filter_avx2::pfb_channelizer_ccf::taps ( ) const
pure virtual

Return a vector<vector<>> of the filterbank taps

Implemented in gr::filter_avx2::pfb_channelizer_ccf_impl.


The documentation for this class was generated from the following file: