scicpp::signal::sweep_poly

Defined in header <scicpp/signal.hpp>

Frequency-swept cosine generator, with a time-dependent frequency.


template<class Array, class Poly>
Array sweep_poly(Array &&t, const Poly &poly, T phi = 0)
t:

Times at which to evaluate the waveform (std::array or std::vector).

poly:

The desired frequency expressed as a polynomial (std::array or std::vector).

⚠ Polynomial coefficients in order of increasing degree (i.e., {1., 2., 3.} is \(1 + 2 X + 3 X^{2}\)).

phi:

Phase offset, in degrees

Return an array of the same length as t.


See also
Scipy documentation