Computes the negative Whittle log-likelihood for a given coefficient vector.
Usage
whittle_loglik(c, B, periodogram)
Arguments
- c
Coefficient vector for the spectral basis expansion.
- B
Design matrix (rows = frequencies, cols = basis functions). Easiest to use the output from build_bspline_design_matrix
- periodogram
Vector of periodogram values.
Value
A scalar value: the negative Whittle log-likelihood.