bionet.utils.trig_poly.gen_dirichlet_coeffs¶
- bionet.utils.trig_poly.gen_dirichlet_coeffs(M)¶
Generate random Dirichlet coefficients for a real signal.
Parameters: M : int
Trigonometric polynomial order.
Returns: am : numpy.ndarray
Array of Dirichlet coefficients with shape (2*M+1). The coefficients are ordered such that am[0] contains the coefficient for m == -M.