Learn R Programming

wsyn (version 1.0.4)

tts: Creator function for the tts class

Description

The tts (time/timescale) class is for matrices for which the rows correspond to times and the columns correspond to timescales. This is a general class from which other classes inherit (e.g., wt, wmf, wpmf). tts inherits from the list class.

Usage

tts(times, timescales, values)

Arguments

times

A numeric vector of increasing real values, spacing 1

timescales

A numeric vector with positive entries

values

A complex or numeric matrix of dimensions length(times) by length(timescales)

Value

tts returns an object of class tts. Slots are:

times

a numeric vector of evenly spaced times

timescales

a numeric vector of positive timescales

values

a complex or numeric matrix of dimensions length(times) by length(timescales)

See Also

tts_methods, wt, wmf, wpmf, browseVignettes("wsyn")

Examples

Run this code
# NOT RUN {
times<-1:10
timescales<-1/c(1:10)
values<-matrix(1,length(times),length(timescales))
h<-tts(times,timescales,values)

# }

Run the code above in your browser using DataLab