tslearn.utils.ts_zeros

tslearn.utils.ts_zeros(sz, d=1)[source]

Returns a time series made of zero values.

Parameters:
sz : int

Time series size.

d : int (optional, default: 1)

Time series dimensionality.

Returns:
numpy.ndarray

A time series made of zeros.

Examples

>>> ts_zeros(3, 2)  # doctest: +NORMALIZE_WHITESPACE
array([[0., 0.],
       [0., 0.],
       [0., 0.]])
>>> ts_zeros(5).shape
(5, 1)