#include <GrKeepOneInN.h>
Inheritance diagram for GrKeepOneInN:
Public Member Functions | |
GrKeepOneInN (int item_size, int N) | |
~GrKeepOneInN () | |
virtual const char * | name () |
default name for a module (override with actual name) | |
virtual void | pre_initialize () |
Set sampling frequency based on upstream sampling freq. | |
virtual int | forecast (VrSampleRange output, VrSampleRange inputs[]) |
map output range to required input ranges | |
virtual int | work (VrSampleRange output, void *o[], VrSampleRange inputs[], void *i[]) |
Generate up to output.size output points at o[output#][sample#] using data at the inputptrs[input#][sample#]. | |
Private Attributes | |
int | d_item_size |
int | d_N |
|
|
|
|
|
map output range to required input ranges
Reimplemented from VrSigProc.
|
|
default name for a module (override with actual name)
Reimplemented from VrSigProc.
|
|
Set sampling frequency based on upstream sampling freq. This method handles automatically setting the sampling frequency for this module based on the sampling frequency of the upstream modules. For most modules, our sampling frequency is the same as our upstream neighbor. VrInterpolatingSigProc and VrDecimatingSigProc override this. This method is called immediately prior to initialize. Reimplemented from VrSigProc.
|
|
Generate up to output.size output points at o[output#][sample#] using data at the inputptrs[input#][sample#]. Pointers start at corresponding VrSampleIndex in the range params. output.size is a multiple of outputSize. Returns the number of outputs (<= output.size) that it was able to compute with the given input ranges. If this value is < output.size, forecast() will need to be called again. Implements VrSigProc.
|
|
|
|
|