Test Tag Variable Rate

Used for testing tag propagation.

This block resamples the stream by a factor that starts at 0.5 but varies around by some random walk. The relative rate of the block is initialized to 0.5 and the random number generator is seeded based on the time. For each input, if the random number is >= 0.5, the relative rate is increased by update_step; otherwise, it is decreased by update_step.

The rate of the change of the resampling factor is set by the flag update_once. If this is set to true, then the rate is only updated once per work function. If it is set to false (default), then the rate is changed with every input sample.

The block's ctor sets the propagation policy to TPP_DONT to stop tags from automatically propagating. Instead, we handle the tag propagation ourselves from within the work function. Because the relative_rate changes so fast, the tag placement cannot be based on a single factor after the call to work and must be handled when the samples are and based on the current resampling rate.

Parameters

 * Update Once
 * Update the resampling rate once per call to work


 * Update Step
 * How much to adjust the resampling rate by when the update occurs

Example Flowgraph
Insert description of flowgraph here, then show a screenshot of the flowgraph and the output if there is an interesting GUI. Currently we have no standard method of uploading the actual flowgraph to the wiki or git repo, unfortunately. The plan is to have an example flowgraph showing how the block might be used, for every block, and the flowgraphs will live in the git repo.

Source Files

 * C++ files
 * 


 * Header files
 * 


 * Public header files
 * 


 * Block definition
 *