extendts
(To be removed) Extend time series data to given number of timesteps
extendts will be removed in a future release. For more information,
see Transition Legacy Neural Network Code to dlnetwork Workflows.
For advice on updating your code, see Version History.
Syntax
extendts(x,ts,v)
Description
extendts(x,ts,v) takes these values,
x | Neural network time series data |
ts | Number of timesteps |
v | Value |
and returns the time series data either extended or truncated to match the specified
number of timesteps. If the value v is specified, then extended
series are filled in with that value, otherwise they are extended with random
values.
Examples
Here, a 20-timestep series is created and then extended to 25 timesteps with the value zero.
x = nndata(5,4,20); y = extendts(x,25,0)