lmlib.utils.generator.gen_slopes#

lmlib.utils.generator.gen_slopes(K, ks, deltas)#

Slopes signal generator

Parameters
  • K (int) – Signal length

  • ks (list) – Indices of slope change

  • deltas (list) – Slope start to end difference at each index in ks

Returns

out – Returns a signal of length K with chances in slope by the values deltas at indeces ks.

Return type

ndarray, shape=(K,)

Example