<unknown>:8: SyntaxWarning: invalid escape sequence '\P'
<unknown>:19: SyntaxWarning: invalid escape sequence '\P'
<unknown>:38: SyntaxWarning: invalid escape sequence '\P'
pdf_multimode
def pdf_multimode(
L:int, # Either int or array for which pdf is calculated
lambdas:list, # Scales of each modes
probs:list, # Probability weight of each mode
)-><built-in function array>: # Array with probability of each LComputes the discrete PDF of multi-mode exponential of the form
\[ \Pr(L) = \sum_{i=1,2} \omega_i (1-e^{-1/\lambda_i}) e^{-(L-1)/\lambda_i} \, , \] where \(\omega\) is the probability of each mode and \(\lambda\) it’s scale.



