cos¶ cos(x, amp=1.0, freq=0.15915494309189535, phase=0.0, baseline=0.0)[source]¶ Cosine function. \[y = {\rm amp} \cdot \cos\left(2 \pi {\rm freq} \cdot x + {\rm phase}\right) + {\rm baseline}\] Return type: ndarray