Skip to content

Struct psd_state_t

ClassList > psd_state_t

PSD state. Allocate with psd_create() .

  • #include <psd_core.h>

Public Attributes

Type Name
acc_trace_state_t * avg
size_t bits
double cg
float * dbbuf
double enbw
fft_state_t * fft
float complex * frame
double fs
double full_scale
size_t n
size_t nfft
float * pwr
double s2
float complex * spec
float * w

Public Attributes Documentation

variable avg

acc_trace_state_t* psd_state_t::avg;

Per-bin power averager, length nfft.


variable bits

size_t psd_state_t::bits;

ADC depth that set full_scale, else 0.


variable cg

double psd_state_t::cg;

Window coherent gain, sum(w).


variable dbbuf

float* psd_state_t::dbbuf;

dB-trace scratch, length nfft.


variable enbw

double psd_state_t::enbw;

Equivalent noise bandwidth, bins.


variable fft

fft_state_t* psd_state_t::fft;

Forward cf32 plan, size nfft.


variable frame

float complex* psd_state_t::frame;

Windowed + zero-padded, length nfft.


variable fs

double psd_state_t::fs;

Sample rate, Hz.


variable full_scale

double psd_state_t::full_scale;

Amplitude that reads 0 dBFS.


variable n

size_t psd_state_t::n;

Window / frame length (samples).


variable nfft

size_t psd_state_t::nfft;

Zero-padded transform length.


variable pwr

float* psd_state_t::pwr;

DC-centred power scratch, length nfft.


variable s2

double psd_state_t::s2;

Window power, sum(w^2).


variable spec

float complex* psd_state_t::spec;

FFT output scratch, length nfft.


variable w

float* psd_state_t::w;

Window, length n.



The documentation for this class was generated from the following file native/inc/psd/psd_core.h