scicpp::signal::unit_impulse

Defined in header <scicpp/signal.hpp>

Unit impulse signal (discrete delta function) or unit basis vector.


template<typename T, std::size_t N>
constexpr std::array<T, N> unit_impulse(std::size_t idx = 0)

template<typename T>
std::vector<T> unit_impulse(std::size_t len, std::size_t idx = 0)

See also
Scipy documentation