cos_decay

cos_decay(x, amp=1.0, tau=1.0, freq=0.15915494309189535, phase=0.0, baseline=0.0)[source]

Cosine function with exponential decay.

\[y = {\rm amp} \cdot e^{-x/\tau} \cos\left(2 \pi \cdot {\rm freq} \cdot x + {\rm phase}\right) + {\rm baseline}\]
Return type:

ndarray