Displaying 3 results from an estimated 3 matches for "jpark".
Did you mean:
park
2011 Sep 23
1
Cross Spectrum : Conversion of 2-D spectrum into a single complex array
Hi, I'm wondering why the spectrum() phase of quadrature
couple isn't purely +/-pi.
But mostly, I'm looking for a recommended way to take a 2-D
spectrum and convert it into a single complex array.
Kindly consider:
# 10 Hz sine wave 10 seconds long sampled at 50 Hz
deltaT = 1/50
t = seq(0, 10, deltaT)
w = 2 * pi * 10
x = ts( sin( w * t ), deltat = deltaT )
y = ts( sin(
2011 Sep 13
4
S4 vs Reference Classes
Hi, I'm looking for some guidance on whether to use
S4 or Reference Classes for an analysis application
I'm developing.
I'm a C++/Python developer, and like to 'think' in OOD.
I started my app with S4, thinking that was the best
set of OO features in R. However, it appears that one
needs Reference Classes to allow object methods to assign
values (other than
2011 Jul 11
1
Spectral Coherence
Greetings,
I would like to estimate a spectral coherence between
two timeseries. The stats : spectrum() returns a coh matrix
which estimates coherence (squared).
A basic test which from which i expect near-zero coherence:
x = rnorm(500)
y = rnorm(500)
xts = ts(x, frequency = 10)
yts = ts(y, frequency = 10)
gxy = spectrum( cbind( xts, yts ) )
plot( gxy $ freq, gxy $