DST_Multi: Apply Multiple Task to the Same Data Stream

View source: R/DST_Multi.R

DST_MultiR Documentation

Apply Multiple Task to the Same Data Stream

Description

Apply multiple task (DST) to the same data stream. The tasks can be accessed as a list as ⁠$dsts⁠.

Usage

DST_Multi(dsts)

Arguments

dsts

a list of DST objects.

Author(s)

Michael Hahsler

Examples

set.seed(1500)

stream <- DSD_Gaussians(k = 3, d = 2)

## define multiple tasks as a list
tasks <- DST_Multi(list(
   DSAggregate_Window(horizon = 10),
   DSC_DStream(gridsize = 0.1)
))
tasks

## update both tasks with the same stream
update(tasks, stream, n = 1000)

## inspect the results of the tasks
tasks$dsts[[1]]
get_model(tasks$dsts[[1]])

tasks$dsts[[2]]
plot(tasks$dsts[[2]])

mhahsler/stream documentation built on April 24, 2024, 10:10 p.m.