Matlab Dirichlet kernel equivalent in Python?

Question:

Is there an equivalent in Python for Matlab diric? The Dirichlet kernel DL(ω) is: DL(ω) = sin(ωL/2) / sin (ω/2)

I found scipy.stats.Dirichlet, but that’s not related. That’s no big deal to write the expanded form, but there is a limit to manage: DL(0) = L.

Asked By: mins

||

Answers:

Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.