Fetching of the periodogram values basically happens by passing
frequencies
and the union of levels.1
and levels.2
to
getValues
. Therefore,
the parameters frequencies
, levels.1
and levels.1
are
expected to be vectors of reals; an error is thrown otherwise. If any of the
frequencies
, levels.1
and levels.2
requested is not
available from object
a warning is issued. Note that the frequencies
are transformed to \([0,\pi]\) using frequenciesValidator
when checking if they are available in object
.
The returned array of values
is of dimension [J,K1,K2,B+1]
,
where J=length(frequencies)
, K1=length(levels.1)
,
K2=length(levels.2))
, and B
denotes the
value stored in slot B
of freqRep
that's a slot of object
.
At position (j,k1,k2,b)
the returned value is the one corresponding to 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.