Displaying 20 results from an estimated 619 matches for "spectrum".
2007 Dec 19
4
Factor Madness
Why is class(spectrum[["Ion"]]) after this "factor"?
spectrum <- cbind(spectrum,Ion=rep("",
nrow(spectrum)),Deviation.AMU=rep(0.0, nrow(spectrum)))
slowly going crazy ...
Joh
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 *...
2008 Sep 09
4
Help with 'spectrum'
For the command 'spectrum' I read:
The spectrum here is defined with scaling 1/frequency(x), following S-PLUS. This makes the spectral density a density over the range (-frequency(x)/2, +frequency(x)/2], whereas a more common scaling is 2? and range (-0.5, 0.5] (e.g., Bloomfield) or 1 and range (-?, ?].
Forgive my i...
2005 Dec 01
1
squared coherency and cross-spectrum
...tted, the
coherency (squared) would be 1, independent of the data". Does any of
you know how to specify properly in R in order to get more useful
coherency? The examples in the help do give coherencies that are not 1s,
but I did not notice any special specification.
Next question is on co-spectrum. When I supply "spectrum" function with
multiple time series, it only gives me spectrum (smoothed periodogram)
of individual time series. Is there any way I can get the
cross-spectrum? I believe R has calculated it, but I could not find in
the returned values.
Attached is the smoothe...
2008 Apr 30
3
Cross Spectrum Analysis
I am reading some documentation about Cross Spectrum Analysis as a technique
to compare spectra.
My understanding is that it estimates the correlation strength between
quasi-periodic structures embedded in two signals. I believe it may be
useful for my signals analysis.
I was referred to the R functions that implement this type of analysis. I
tr...
2012 Feb 07
2
Help need
I have mad a for loop to try and output values which i have named spectrum. However, I cannot seem to get the answers to come out as a vector which is what i need. They come out as separate values which I am then unable to join together. Thank you
for(f in seq(0,0.5,0.1)) {
sigmasqaured <- 1
i = complex(real = 0, imaginary = 1)
spectrum <- (sigmasqaured)/(abs(...
2001 Jul 19
1
Strange behaviour of spectrum()?
Dear r-help list:
In the following R session, I seem to be somehow breaking the spectrum()
function, but I'm not sure how. Could somebody please point out my
mistake? My apologies if it's something that should be obvious.
The mysterious bit is how spectrum(my.ts) at first works, but then later
fails with an error message that I find difficult to interpret.
I'm runnin...
2009 Jun 11
2
Problem with new version of GlusterFS-2.0.1 while copying.
...-behind
option window-size 1MB
subvolumes replicate
end-volume
volume cache
type performance/io-cache
option cache-size 512MB
subvolumes writebehind
end-volume
############################################################################
Regards,
Raja Krishnan,
Linux Administrator,
Spectrum Softtech Solutions(P)Ltd,
Cochin, Kerala - 682011.
Phone : 91-484-4082000
Fax: 91-484-4082408
Visit at : www.spectrum.net.in , www.spectrum.co.in , www.spectramedi.com
? Please do not print this e-mail unless it is
absolutely necessary. SAVE PAPER. Protect the Environment. P
DISCLAIMER
The infor...
2000 Feb 01
1
plotting spectrum of time series etc
Hi, everyone, I tried to use "spectrum()" or "spec.pgram()" to get a
periodogram of a time series but they didn't work.
Even the examples given in the help file didn't work (all with the same
error message, below). And the 'ts'ibrary was
loaded with "library(ts)" or "library("ts")....
2011 May 10
1
Power Spectrum from STFT (e1071)?
Hello.
Does anyone know how to generate a power spectrum from the STFT function in
package e1071? The output for this function supplies the Fourier
coefficients, but I do not know how to relate these back to the power
spectrum.
Alternatively, if anyone is aware of other packages/functions that perform
short time Fourier transforms, that would also be he...
2013 Dec 18
1
how to analysisi spectrum of a dataset with NA value
hi R users
I have a large 1D dataset and some of them is NA value .
I found I cound get the spectrum by such a command.
ua=c£¨10£¬30 £¬40£¬50£¬NA£©
spectrum(ua)
and I could not use na.rm just like mean or sd function
How could I get the spectrum of ua ?
thank you .
--
TANG Jie
[[alternative HTML version deleted]]
2011 Feb 08
1
Recuperate Spectrum() amplitude
Dear list,
I apologies first for my English, hope you will understand well my question.
I am working on 1/2 hour piezometric data, time unit is second. They
present daily oscillation when using the spectrum() function. What I am
really interested in, is to find the amplitude corresponding to this
oscillation.
I work with a college using Matlab, and although we apply the same
methodology, our results differs : we find the same frequencies, but not
the same amplitudes.
I put the code I use here to...
2024 Jul 10
1
Implementation for selecting lag of a lag window spectral estimator using generalized cross validation (using deviance)
...g window spectral estimator.
Also, I have a small query in the reprex given below.
Background for the above, from the book by Percival and Walden:
1. We are given X_1,...,X_n which is one realization of a stochastic process.
2. We may compute the periodogram using FFT, for example by the
function spectrum in R.
3. The above is badly biased so we taper X_1,...,X_n to reduce the
bias in the periodogram.
4. Now that the bias in under control, we focus on reducing the
variance. So we take a window like for eg. the Parzen window, and
choose
a lag length m which controls the amount of smoothing across fre...
2008 Nov 06
1
nls: Fitting two models at once?
...ied to condense everything to the "minimum" R script below to give an
impression of what I'm talking about.
Martin
########################################################################
# "Minimal" R script reading remote data for convenience
### READ IN DATA
# first spectrum
asfe <- read.table("http://home.arcor.de/ballaschk/cytbf-help/asfe.csv")[, 1];
# second spectrum
dias <- read.table("http://home.arcor.de/ballaschk/cytbf-help/dias.csv")[, 1];
# reference data for fit, wavelength = wl
ref <- read.table("http://home.arcor.de/ballas...
2004 Jan 22
1
spectrum
Dear R users
I have two questions about estimating the spectral power of a
time series:
1) I came across a funny thing with the following code:
data(co2)
par(mfrow=c(2,1))
co2.sp1<-spectrum(co2,detrend=T,demean=T,span=3)
co2.sp2<-spectrum(co2[1:468],detrend=T,demean=T,span=3)
The first plot displays the frequencies ranging from 0 to 6
whearas the second plot displays the same curve but with
frequencies between 0 and .5 although it is based on the same
data (length(co2)=468). Why d...
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 $ coh )...
2007 Jan 08
2
Simple spectral analysis
...ases" from 2005
did not enlighten me)
As a starter for the students I have a 10year data set of air
temperature with daily values and I try to
get a periodogram where the annual period (365 days) should be clearly
visible (in statistica I can get the frequencies and the period).
I tried the spectrum() and pgram() functions, but
did not find a way through... The final aim would be to
get the periodogram (and the residuals from the reassembled data set...)
Thanks and greetings,
Georg
The data set:
air = read.csv("http://www.hydrology.uni-kiel.de/~schorsch/air_temp.csv")
airtemp = ts...
2008 Oct 10
1
multi-scale singular spectrum analysis (SSA)
Hi everybody!
I am searching for an R implementation of multi-scale singular
spectrum analysis (SSA), which was introduced by Yiou etal (2000)
(Data-adaptive wavelets and multi-scale singular-spectrum analysis)
and further described in Ghil etal (2002).
For SSA alone I found an package recently published on r-forge:
http://r-forge.r-project.org/projects/simsalabim/
I am happy abo...
2008 Jun 04
2
estimate phase shift between two signals
Hi,
Are there any functions in R that could be used to estimate the phase-shift
between two semi-sinusoidal vectors? Here is what I have tried so far, using
the spectrum() function -- possibly incorrectly:
# generate some fake data, normalized to unit circle
x <- jitter(seq(-2*pi, 2*pi, by=0.1), amount=pi/8)
# functions defining two out-of-phase phenomena
f1 <- function(x) jitter(sin(x), amount=0.25)
f2 <- function(x, a) jitter(sin(x + a), amount=0.25)...
2007 Mar 09
2
Deconvolution of a spectrum
Dear useRs,
I have a curve which is a mixture of Gaussian curves (for example UV
emission or absorption spectrum). Do you have any suggestions how to
implement searching for optimal set of Gaussian peaks to fit the curve?
I know that it is very complex problem, but maybe it is a possibility
to do it? First supposement is to use a nls() with very large functions,
and compare AIC value, but it is very difficult...