Displaying 20 results from an estimated 2000 matches similar to: "Fitting a sine wave using solver"
2011 Jul 27
2
fitting sine wave
Dear R-helpers
?
I have 7 data points that I want to fit a continuous curve to, that should look similar to a sine wave
My data points would mark the local minima and maxima respectively.
This is what I?ve got so far. And I would keep doing so, but sadly nls() then says that it has reached the maximum number of Iterations?
?
2008 Jun 10
3
fitting periodic 'sine wave' model
I have been attempting to estimate the periodic contribution of an
effect to some data but have not been able to fit a sine wave within R.
It would be nice to start by being able to fit a sine wave with an
amplitude and frequency.
x<-seq(0,20,by=0.5)
y<-2*sin(2*pi*.5*x) #amplitude =2, frequency=0.5
# This failed to converge
r<-nls(y ~ A*sin(2*pi*F*x), start=list(A = 1, F = 1),
2005 Jan 13
3
Problem encoding sine wave in 1.1.6 and somewhat in 1.0.4
On Thu, 2005-01-13 at 12:42 -0500, Jean-Marc Valin wrote:
> Le jeudi 13 janvier 2005 ? 10:59 -0500, Jared Whitby a ?crit :
> > Interestingly enough.. I started playing around with preprocessing
> > options in 1.1.6 and happened upon the denoise filter
> > (SPEEX_PREPROCESS_SET_DENOISE). When i run the test tone using that
> > option it is completely filtered out and I
2010 Oct 18
2
Sine function fitting
Hi,
Is there a package to perform a sine function fitting to XY data?
Thx,
Ashz
--
View this message in context: http://r.789695.n4.nabble.com/Sine-function-fitting-tp3000156p3000156.html
Sent from the R help mailing list archive at Nabble.com.
2016 Aug 02
3
OPUS encoding mono sine wave
I wonder if anybody try to compress a pure sine wave using OPUS codec.
When I compressed the mono 1KHz, 16bits 48000 samples per sec. audio stream using the 'opus_demo' utility:
opus_demo -e audio 48000 1 2min_1kHz_Sine_16bit_48kHz.wave 2min_1kHz_Sine_16bit_48kHz.opus_raw
I had the output stream that is shown below.
00 00 00 01 00 00 00 00 78 00 00 00 01 00 00 00 00 78 00 00 00 01 00
2005 Jan 13
0
Problem encoding sine wave in 1.1.6 and somewhat in 1.0.4
Well I think a sinusoid shouldn't totally trash the encoder state, so
I still think theres a bug lurking around in there. The denoiser just
prevents it from ever making it to the encoder. Just from browsing
through the speex code and from what I've learned reading through the
mailing list, it looks like there are a few places where checks are in
place to prevent sinusoids from
2016 Aug 02
0
OPUS encoding mono sine wave
On 02/08/16 10:59 AM, Kolesov, Alexander wrote:
> opus_demo -e audio 48000 1 2min_1kHz_Sine_16bit_48kHz.wave
> 2min_1kHz_Sine_16bit_48kHz.opus_raw
You're missing the "bitrate" argument to opus_demo... Though I'm
surprised it didn't complain about it.
Jean-Marc
2005 Jan 10
0
Problem encoding sine wave in 1.1.6 and somewhat in 1.0.4
I am currently using speex and ogg to archive voice data. The data
comes in PCM ulaw at
8kHz and I use a table look up to convert it to normal 16-bit PCM
data. Whenver the sound
coming in is voice everything works perfectly. However, we
periodically run test signals through
our system to determine link problems.. etc. This test signal totally
hoses speex during
playback, but only when you try to
2006 Feb 20
2
Write pure sine to *.ogg directly?
Hello,
I am author of a Morse code training software written
in Perl at http://starling.ws/morse
Currently I output to *.wav and, if on Unix, convert to
*.ogg. And that's okay for a trainer.
But I have desire to upgrade the project to a real-time
communication tool...or at least a Morse code audio
mail routine. And I should like to avoid *.wav.
I'd like some means of writing a pure
2010 Dec 20
2
Sine Regression in R
Hi everyone,
I am trying to fit a sine function on one year of wind data. I have two
questions below.
Looking around on the net I managed to get the following:
Sine Equation: y = a + b * sin( c + d*x )
b is the amplitude, c is the phase shift, d is something deal with
periodicty of data*.*
This can be linearised by sin( c+dx ) = cos(c) * sin(dx) + sin(c) *
cos(dx).
If one calls dx = x1
y
2008 May 23
2
Fit a sine to data
Dear R-users,
I'd like to fit a sine function to my data. The result should have a format
(and thus the formula, too)
y ~ a + sin(x+b)
where y and x are vectors, and a and b are (yet) unknown values.
The data sets (vectors x and y) are OK, and I can do a simple lm fitting
lm(y~x), or lm(y~I(sin(2*pi*x/360))), succesfully My issue is that I'm not
able to do the optional linear shift in
2007 Aug 15
2
pcspkr wave encoding
Hi,
there is an interesting case when the FLAC encoder (using 1.2.0) is
given simple waves. Simple waves means: I have a list of {frequency,
duration, pause} tuples that define the monophonic tune. In other
words, exactly one frequency is played at a time.
This is the original dataset from 1989 (driving a PC speaker back
then):
$ ls -l ihold.sd
-rw-r--r-- 1 jengelh users 20616 Aug 14 00:57
2005 Jan 13
0
Problem encoding sine wave in 1.1.6 and somewhat in 1.0.4
Le jeudi 13 janvier 2005 ? 10:59 -0500, Jared Whitby a ?crit :
> Interestingly enough.. I started playing around with preprocessing
> options in 1.1.6 and happened upon the denoise filter
> (SPEEX_PREPROCESS_SET_DENOISE). When i run the test tone using that
> option it is completely filtered out and I just get (complete)
> silence. When the test tone is intermixed with regular voice
2011 Aug 05
1
Translate Sine Function in R?
Hello, I'm trying to generate a sine wave in R to fit my observations using
the general formula:
y=a*sin(b[x+h*pi)]+k
where a = amplitude, b=period, h=phase shift, and k=vertical shift
I want to use following translation to bring the sine function up onto the
y-axis to range from 0-1, and this will place the wave on the x-axis from
0-pi/2.
y=1/2sin(2[x+ 1/4*pi]) + 1/2
Additionally, I need
2012 Jun 02
1
Determining frequency and period of a wave
Hello! I'm collecting data on a refrigerator that I'm using to cure
meat. Specifically I am collection humidity and temperature readings.
The temperature readings look sinusoidal (due to the refrigerator
turning on and off).
I'd like to calculate the frequency and period of the wave so that I can
determine if modifications I make to the equipment are increasing or
decreasing
2010 Feb 01
1
Fwd: Re: Fixed Point on wideband-mode: Single Frame loss on 2000 Hz sine causes "freak off"
Hi Jean-Marc,
my answers: see below. Any good ideas how I should proceed?
Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> hat am 1. Februar 2010 um 13:09 geschrieben:
> Hi Frank,
>
> On 2010-02-01 05:56, Frank Lorenz wrote:
> > I get really strange results when comparing floating and fixed point
> > versions of interal variables of the ltp, so either something is
2006 Dec 19
2
fit sine?
Hello list,
I am making scatterplots of data that vary sinusoidally over 24 hours.
With a bit of previous help from this list, I now can get an x-axis with
time tics from 00:00 on the left edge to 12:00 in the middle and 00:00 on
the right edge, i.e., just 24 hours.
Now I would like to fit a sin function to the plot. I've looked all over
CRAN and the web in general, but have not found a
2005 Jan 13
2
Problem encoding sine wave in 1.1.6 and somewhat in 1.0.4
Interestingly enough.. I started playing around with preprocessing
options in 1.1.6 and happened upon the denoise filter
(SPEEX_PREPROCESS_SET_DENOISE). When i run the test tone using that
option it is completely filtered out and I just get (complete)
silence. When the test tone is intermixed with regular voice I only
get the voice. So while i still don't quite understand why the test
tone
2010 Feb 01
1
Fwd: Re: Fixed Point on wideband-mode: Single Frame loss on 2000 Hz sine causes "freak off"
Hi Jean-Marc,
dBFS means dB relative to digital full scale. In other words: a sine value of -42 dBFS will, on a 16 bit PCM signal, swing between 131 and -131 only (16384 * 10^(-42/20))
So we are far below +/-8000.
At the moment, I'm out of ideas how to debug systematically. That even very small rounding errors alter pitch values fundamentally makes the situation worse for me, because it
2010 Feb 03
1
Fwd: Re: Fixed Point on wideband-mode: Single Frame loss on 2000 Hz sine causes "freak off"
You mean the "real" (not the synthesized) residual? What is odd in your opinion? These glitches I mentioned or something else?
I replaced the interpolated lpc (variable "interp_lpc") with the original lpc (variable lpc) for residual generation. This makes the situation worse, so lpc interpolation seems to "smooth" the error and reduces it. I will check the