lmlib.utils.generator.gen_saw#

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

Sawtooth signal generator

Parameters
  • K (int) – Signal length

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

Returns

out – Returns a repetitive slope signal of length K. Amplitudes are normalize from 0 to 1.

Return type

ndarray, shape=(K,)

Example