TS_sample | R Documentation |
Time Series Sample-Generator
TS_sample(
TS_key = "rnorm",
N = 500,
nr_samples = 1,
...,
.seed = NULL,
.kind_vstr_list = NULL
)
TS_key |
A key, i.e. a |
N |
The desired length of the time series. Default value
|
nr_samples |
The desired number of independent samples to be
produced. The default value |
... |
|
.seed |
Use this to enable reproducible results. Default value
|
.kind_vstr_list |
This can be used to create a list with the
values for |
This function will create one or more time series based on
the "keys" stored in TS_families
, with emphasis on also
storing the required arguments needed in order to reproduce it
later on.
This function returns a list with the following four parts:
A 3-dimensional array with the resulting time series,
generated according to the specified arguments. The array
contains three dimensions in order to have a unified solution
for univariate and multivariate solutions. The first dimension
reflects the number of samples, as given by nr_samples
.
The second dimension reflects the length of the samples, as
given by N
. The third dimension reflects the number of
variables in the time series, which is decided by TS_key
and the arguments given to ...
Additional details used by TS_LG_object
when
the data is saved to disk.
An environment that contains all the arguments that was used for the present computation.
This part reflects that the internal workings of
the code creates a vector of seeds (based on .seed
) that
then can be used to reproduce an individual series later on.
This is of course only of interest when nr_samples
is
larger than one, and we for some reason later on would like to
do an in depth analysis of one of the resulting time series.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.