Learn R Programming

quantspec (version 1.2-4)

getValues-QuantileSD: Get values from a quantile spectral density kernel

Description

If none of the optional parameters is specified then the values are returned for all Fourier frequencies in \([0,2\pi)\) (base given by slot N) and all levels available. The frequencies and levels can be freely specified. The returned array then has, at position (j,k1,k2,b), the value corresponding to the frequencies[j], levels.1[k1] and levels.2[k2] that are closest to the frequencies, levels.1 and levels.2 available in object; closest.pos is used to determine what closest to means.

Usage

# S4 method for QuantileSD
getValues(
  object,
  frequencies = 2 * pi * (0:(object@N - 1))/object@N,
  levels.1 = getLevels(object, 1),
  levels.2 = getLevels(object, 2),
  d1 = 1:(dim(object@values)[2]),
  d2 = 1:(dim(object@values)[4])
)

Value

Returns data from the array values that's a slot of

object.

Arguments

object

QuantileSD of which to get the values

frequencies

a vector of frequencies for which to get the values

levels.1

the first vector of levels for which to get the values

levels.2

the second vector of levels for which to get the values

d1

optional parameter that determine for which j1 to return the data; may be a vector of elements 1, ..., D

d2

same as d1, but for j2

See Also

For examples on how to use this function go to QuantileSD.