example.database2 {TSdist} | R Documentation |
Example synthetic database with series belonging to different classes.
Description
Example synthetic database with series belonging to 6 different classes.
Usage
data(example.database2);
Format
example.database2
a list conformed of the following two elements:
data The 100 time series are stored in a numeric matrix, row-wise.
classes A numerical vector of length 100 that takes values in {1,2,3,4,5,6}. Each element in the vector represents the class of one of the series.
Details
example.database2
is a database conformed of 100 series of length 100 obtained from 6 different classes. Each class is represented by the following function:
The class to which each series belongs is given in the classes
vector.
Class 1: random function
Class 2: periodic function
Class 3: increasing linear trend
Class 4: decreasing linear trend
Class 5: piecewise linear function which takes a value of
for the first L/2+sh of the series and a value of
for the rest of the points.
Class 6: piecewise linear function which takes a value of
for the first L/2+sh of the series and a value of
for the rest of the points.
is a random value issued from a
distribution,
is the length of the series, 100 in this case, and
is the period and is defined as a third of the length of the series.
is a random noise obtained from a
distribution.. Finally,
is an integer value that takes a random value between
and shifts the series sh positions to the right or left, depending on the sign.
Examples
data(example.database2);
## The "data" element of the list contains the time series, set in a row-wise format.
plot(example.database2$data)[1,]
## The "classes" element in example.database2 contains the classes of the series:
example.database2$classes