[R] average waveform over many cycles
m_olshansky at yahoo.com
Thu Oct 11 02:27:57 CEST 2007
You get cyclelemgth = 110.
If this is true, i.e if every 110 points of data
represent an entire cycle then everything is all
right, but are you sure this is true? Think what
happens if the true cycle length was 110.5 data
--- Bill Simpson <bill.simpson at plymouth.ac.uk> wrote:
> Thanks Jim for the help.
> I forgot to say that one of my main snags is
> figuring how how to chop up
> the one long (44100 samples) vector into pieces (400
> of them).
> This is my C-inspired way of thinking but there must
> be a better way in
> for i= 1 to 400
> for j= 1 to cyclelength
> Once that's done I can average over rows
> Thanks for any suggestions
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained,
> reproducible code.
More information about the R-help