lmlib.utils.generator.gen_tri#

lmlib.utils.generator.gen_tri(K, k_period)#

Triangular signal generator

Parameters
  • K (int) – Signal length

  • k_period (int) – periodicity, number of samples per period

Returns

out – Returns a triangular signal of length K with k_period samples per triangle. Amplitudes aer normalize from 0 to 1.

Return type

ndarray, shape=(K,)

Example