Skip to main content

maximum_entropy_spectrum

Function maximum_entropy_spectrum 

Source
pub fn maximum_entropy_spectrum(
    x: &[f64],
    order: usize,
    num_points: usize,
    sample_rate: f64,
) -> Result<(Vec<f64>, Vec<f64>), ErrorsJSL>
Expand description

Maximum entropy power spectral density estimate of a real signal from an order-order Burg AR model, on num_points evenly spaced frequencies from 0 to Nyquist inclusive.

Returns (frequencies in Hz, one-sided PSD in units²/Hz). The one-sided PSD integrates (over 0 to sample_rate / 2) to the signal power.