spwaterfallcf
Variants: spwaterfallcf, spwaterfallf
Spectral periodogram waterfall object for computing time-varying power spectral density estimates
Public Functions
spwaterfallcf | spwaterfallcf_create( |
spwaterfallcf | spwaterfallcf_create_default( |
spwaterfallcf | spwaterfallcf_copy( |
int | spwaterfallcf_destroy( |
int | spwaterfallcf_clear( |
int | spwaterfallcf_reset( |
int | spwaterfallcf_print( |
uint64_t | spwaterfallcf_get_num_samples_total( |
unsigned int | spwaterfallcf_get_num_freq( |
unsigned int | spwaterfallcf_get_num_time( |
unsigned int | spwaterfallcf_get_window_len( |
unsigned int | spwaterfallcf_get_delay( |
int | spwaterfallcf_get_wtype( |
const float * | spwaterfallcf_get_psd( |
int | spwaterfallcf_set_freq( |
int | spwaterfallcf_set_rate( |
int | spwaterfallcf_set_dims( |
int | spwaterfallcf_set_commands( |
int | spwaterfallcf_push( |
int | spwaterfallcf_write( |
int | spwaterfallcf_export( |
Interfaces
spwaterfallcf spwaterfallcf_create(
Create spwaterfall object, fully defined
- _nfft : transform (FFT) size, 2 <= _nfft
- _wtype : window type, e.g. LIQUID_WINDOW_HAMMING
- _window_len : window length, 1 <= _window_len <= _nfft
- _delay : delay between transforms, 0 < _delay
- _time : number of aggregated transforms, 0 < _time
spwaterfallcf spwaterfallcf_create_default(
Create default spwatefall object (Kaiser-Bessel window)
- _nfft : transform size, 2 <= _nfft
- _time : delay between transforms, _delay > 0
spwaterfallcf spwaterfallcf_copy(
Copy object including all internal objects and state
int spwaterfallcf_destroy(
Destroy spwaterfall object, freeing all internally-allocated memory
int spwaterfallcf_clear(
Clears the internal state of the object, but not the internal buffer
int spwaterfallcf_reset(
Reset the object to its original state completely. This effectively executes the clear() method and then resets the internal buffer
int spwaterfallcf_print(
Print internal state of the object to stdout
uint64_t spwaterfallcf_get_num_samples_total(
Get number of samples processed since object was created
unsigned int spwaterfallcf_get_num_freq(
Get FFT size (columns in PSD output)
unsigned int spwaterfallcf_get_num_time(
Get number of accumulated FFTs (rows in PSD output)
unsigned int spwaterfallcf_get_window_len(
Get window length used in spectral estimation
unsigned int spwaterfallcf_get_delay(
Get delay between transforms used in spectral estimation
int spwaterfallcf_get_wtype(
Get window type used in spectral estimation
const float * spwaterfallcf_get_psd(
Get power spectral density (PSD), size: nfft x time
int spwaterfallcf_set_freq(
Set the center frequency of the received signal. This is for display purposes only when generating the output image.
- _q : spectral periodogram waterfall object
- _freq : center frequency [Hz]
int spwaterfallcf_set_rate(
Set the sample rate (frequency) of the received signal. This is for display purposes only when generating the output image.
- _q : spectral periodogram waterfall object
- _rate : sample rate [Hz]
int spwaterfallcf_set_dims(
Set the canvas size. This is for display purposes only when generating the output image.
- _q : spectral periodogram waterfall object
- _width : image width [pixels]
- _height : image height [pixels]
int spwaterfallcf_set_commands(
Set commands for executing directly before 'plot' statement.
- _q : spectral periodogram waterfall object
- _commands : gnuplot commands separated by semicolons
int spwaterfallcf_push(
Push a single sample into the object, executing internal transform as necessary.
- _q : spwaterfall object
- _x : input sample
int spwaterfallcf_write(
Write a block of samples to the object, executing internal transform as necessary.
- _q : spwaterfall object
- _x : input buffer, shape: (_n, 1)
- _n : input buffer length
int spwaterfallcf_export(
Export set of files for plotting
- _q : spwaterfall object
- _base : base filename (will export .gnu, .bin, and .png files)