Re: [R] fft inverse display help

2008-10-02 Thread rkevinburton
Sorry, I must be looking at a different section but when I look at 3.4 in r-intro.pdf I see: 3.4 The class of an object All objects in R have a class, reported by the function class. For simple vectors this is just the mode, for example "numeric", "logical", "character" or "list", but "matrix",

Re: [R] fft inverse display help

2008-10-02 Thread Dieter Menne
charter.net> writes: > > My question is how does 'plot' know to implicilty call the plot.ts (in the case of the full "exact" spectrum > being fed back into the inverse? So the title should be "How does the specific incarnation of object orientation in R work?" Try, for example, section 3.4 and

Re: [R] fft inverse display help

2008-10-02 Thread rkevinburton
My question is how does 'plot' know to implicilty call the plot.ts (in the case of the full "exact" spectrum being fed back into the inverse? Kevin Dieter Menne <[EMAIL PROTECTED]> wrote: > charter.net> writes: > > > > > ff <- complex(length(fs)) > > ff[9] <- fs[9] > > ff[5] <- fs[5] >

Re: [R] fft inverse display help

2008-10-01 Thread Dieter Menne
charter.net> writes: > > ff <- complex(length(fs)) > ff[9] <- fs[9] > ff[5] <- fs[5] > > Include the DC component: > > ff[1] <- fs[1] > > Take the inverse > > fi <- fft(ff, inverse=TRUE) / length(ff) > > Plot > > plot(fi) > > Notice that the plot is the Re vs. Im on the x and y axis' res

Re: [R] fft inverse display help

2008-10-01 Thread rkevinburton
Generate the square wave: genseq <- function() { x <- numeric(4*365) s <- seq(as.Date("2005-01-01"), as.Date("2008-12-31"), by="month") ob <- as.vector(s[c(10,22,34,46)] - as.Date("2005-01-01")) oe <- as.vector(s[c(11,23,35,47)] - as.Date("2005-01-01")) for(.index in 1:length(ob)) {

Re: [R] fft inverse display help

2008-10-01 Thread Dieter Menne
charter.net> writes: > > So iis what you are saying n plotting the list of compliex numbers 'R' recognizes the non-symmery and plots > it differently (Re vs. Im) rather than versus Time? Mmm... don't fully understand what you mean, mainly because your program example did not run and I had do s

Re: [R] fft inverse display help

2008-10-01 Thread rkevinburton
So iis what you are saying n plotting the list of compliex numbers 'R' recognizes the non-symmery and plots it differently (Re vs. Im) rather than versus Time? Dieter Menne <[EMAIL PROTECTED]> wrote: > charter.net> writes: > > > > > I have a a simple function that generates a time seri

Re: [R] fft inverse display help

2008-10-01 Thread Dieter Menne
charter.net> writes: > > I have a a simple function that generates a time series square wave: > Your example is not self-running, because the definition of e is unclear. > Now I ge the x-asis as the real component and y-axis as imaginary component. When does the display switch? > How many fr

[R] fft inverse display help

2008-09-30 Thread rkevinburton
I have a a simple function that generates a time series square wave: genseq <- function() { x <- numeric(4*365) s <- seq(as.Date("2005-01-01"), as.Date("2008-12-31"), by="month") ob <- as.vector(s[c(10,22,34,46)] - as.Date("2005-01-01")) oe <- as.vector(s[c(11,23,35,47)] - as.Date("2005-01