spwaterfallf
Variants: spwaterfallcf, spwaterfallf
Spectral periodogram waterfall object for computing time-varying power spectral density estimates
Public Functions
spwaterfallf | spwaterfallf_create( |
spwaterfallf | spwaterfallf_create_default( |
spwaterfallf | spwaterfallf_copy( |
int | spwaterfallf_destroy( |
int | spwaterfallf_clear( |
int | spwaterfallf_reset( |
int | spwaterfallf_print( |
uint64_t | spwaterfallf_get_num_samples_total( |
unsigned int | spwaterfallf_get_num_freq( |
unsigned int | spwaterfallf_get_num_time( |
unsigned int | spwaterfallf_get_window_len( |
unsigned int | spwaterfallf_get_delay( |
int | spwaterfallf_get_wtype( |
const float * | spwaterfallf_get_psd( |
int | spwaterfallf_set_freq( |
int | spwaterfallf_set_rate( |
int | spwaterfallf_set_dims( |
int | spwaterfallf_set_commands( |
int | spwaterfallf_push( |
int | spwaterfallf_write( |
int | spwaterfallf_export( |
Interfaces
spwaterfallf spwaterfallf_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
spwaterfallf spwaterfallf_create_default(
Create default spwatefall object (Kaiser-Bessel window)
- _nfft : transform size, 2 <= _nfft
- _time : delay between transforms, _delay > 0
spwaterfallf spwaterfallf_copy(
Copy object including all internal objects and state
int spwaterfallf_destroy(
Destroy spwaterfall object, freeing all internally-allocated memory
int spwaterfallf_clear(
Clears the internal state of the object, but not the internal buffer
int spwaterfallf_reset(
Reset the object to its original state completely. This effectively executes the clear() method and then resets the internal buffer
int spwaterfallf_print(
Print internal state of the object to stdout
uint64_t spwaterfallf_get_num_samples_total(
Get number of samples processed since object was created
unsigned int spwaterfallf_get_num_freq(
Get FFT size (columns in PSD output)
unsigned int spwaterfallf_get_num_time(
Get number of accumulated FFTs (rows in PSD output)
unsigned int spwaterfallf_get_window_len(
Get window length used in spectral estimation
unsigned int spwaterfallf_get_delay(
Get delay between transforms used in spectral estimation
int spwaterfallf_get_wtype(
Get window type used in spectral estimation
const float * spwaterfallf_get_psd(
Get power spectral density (PSD), size: nfft x time
int spwaterfallf_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 spwaterfallf_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 spwaterfallf_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 spwaterfallf_set_commands(
Set commands for executing directly before 'plot' statement.
- _q : spectral periodogram waterfall object
- _commands : gnuplot commands separated by semicolons
int spwaterfallf_push(
Push a single sample into the object, executing internal transform as necessary.
- _q : spwaterfall object
- _x : input sample
int spwaterfallf_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 spwaterfallf_export(
Export set of files for plotting
- _q : spwaterfall object
- _base : base filename (will export .gnu, .bin, and .png files)