comnum.upsample#

comnum.upsample(x, factor)#

Insert factor - 1 zeros after every sample.

Parameters:
  • x (array_like) – the signal.

  • factor (int) – the upsampling factor.

Returns:

factor·len(x) samples (complex128).

Return type:

numpy.ndarray

Raises:

ValueError – for an input that is not an array of numbers of the expected shape.