search for: sine

Displaying 20 results from an estimated 299 matches for "sine".

Did you mean: line
2007 Aug 15
2
pcspkr wave encoding
...-r-- 1 jengelh users 20616 Aug 14 00:57 ihold.sd Since driving the PC speaker is mostly a privileged operation these days, one would just convert it to PCM and use soundcard output. The program "sd" I have written does just that. The two numerical parameters a and b denote the square and sine rate. # 0:1 rate <=> 0% square, 100% sine generation $ ./sd ihold.sd 0 1 | sox -r48000 -s -w -t raw - ihold-sine.wav # 1:2 rate <=> 33% square, 66% sine generation $ ./sd ihold.sd 1 2 | sox -r48000 -s -w -t raw - ihold-square1-sine2.wav # 1:0 rate <=> 100% square, 0% sine gener...
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.
2008 Nov 20
4
Fitting a sine wave using solver
Greetings, I have several sets of oscillation data and would like to estimate the parameters of a sine function to each set (and hopefully automate this). A colleague provided an excel sheet that uses solver to minimize the RSS after fitting the sine function to each data set, but this cumbersome and difficult to automate. Is there a method in R for fitting a given sine function to a supplied...
2006 Feb 20
2
Write pure sine to *.ogg directly?
...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 sine wave straight to *.ogg just as I currently can to *.wav (using the Perl Audio::Wav module). This would involve turning on and off a sine wave of N mS duration with silences between. And the leading edges of these sine-wave segments require a not-too-abrupt rise time to avoid what Morse folks call...
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 ) = c...
2008 Jan 10
3
Cycle Regression Analysis in R?
Hello R community, Does anyone know of a package that will perform cycle regression analysis? I have searched the R-help archives etc. but have come up with nothing so far. If I am unable to find an existing R package to do so, is there anyone familiar with fitting sine functions to data. My problem is this: I have a long time-series of daily SWE estimates (SWE = snow water equivalence, or the amount of water stored in a snowpack) which follows a sinusoidal pattern, and I need to estimate the parameters of the sine function that best fits this data. While ther...
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...
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), trace=T) # even this gave a...
2013 Jul 15
3
SSD support in C5 and C6
Hey everyone, My company is beginning to look at using SSD drives in our CentOS based servers. Does C5 and C6 support TRIM and other "required" functions for the SSD to operate? Thanks, Andrew Reis Microsoft Certified Technology Specialist CompTIA Network+ Networking/Systems Analyst Webmaster DBMS Inc.
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...
2014 Nov 30
4
awk vs. mawk
...wk version 20110810" as distributed > with current OpenBSD 5.6 GENERIC.MP#610 amd64. > With mawk-1.3.4.20140914 it works fine > (and ./test_replaygain.sh passes). > > Can anyone please shed some light on what's mawk-spacific > about that awk script? It seems to be just a sine-generator. > Ha! If the final > printf("%c", byte[bx]); > is changed to > printf("%d", byte[bx]); > the results produced by mawk and awk are identical. > So the diference must be just that mawk printf's "%c" differently. > the two sequences...
2010 Feb 01
1
Fwd: Re: Fixed Point on wideband-mode: Single Frame loss on 2000 Hz sine causes "freak off"
...ally strange results when comparing floating and fixed point > > versions of interal variables of the ltp, so either something is > > terribly wrong or I do not understand some fundamental thing (I think > > the second point is valid...) > > > > I observed that for the sine that causes trouble in fixed point, the > > computed pitch value is quite different for fixed and floating point. > > So I tried to get into pitch analysis a little deeper... > > It's expected that the actual pitch period be different (especially for > a sine because there...
2007 Aug 15
0
pcspkr wave encoding
...6 Aug 14 00:57 ihold.sd > > Since driving the PC speaker is mostly a privileged operation these > days, one would just convert it to PCM and use soundcard output. The > program "sd" I have written does just that. The two numerical > parameters a and b denote the square and sine rate. > > # 0:1 rate <=> 0% square, 100% sine generation > $ ./sd ihold.sd 0 1 | sox -r48000 -s -w -t raw - ihold-sine.wav > > # 1:2 rate <=> 33% square, 66% sine generation > $ ./sd ihold.sd 1 2 | sox -r48000 -s -w -t raw - > ihold-square1-sine2.wav > > #...
2009 Dec 21
0
Fwd: Fixed Point on wideband-mode: Single Frame loss on 2000 Hz sine causes "freak off"
...not to be related to the overflow messages. best regards, Frank ---------- Urspr?ngliche Nachricht ---------- Von: Frank Lorenz <Frank_wtal at web.de> An: speex-dev at xiph.org Datum: 18. Dezember 2009 um 13:36 Betreff: [Speex-dev] Fixed Point on wideband-mode: Single Frame loss on 2000 Hz sine causes "freak off" Hi, I'm quite sure we found a bug inside the codec (1.2rc1, wideband mode). It only occurs when speex is compiled with the FIXED_POINT flag. I feed in a 2000 Hz sine wave (-15 dBFS). When I simulate a single frame loss (i.e. pass a null pointer to speex_decode_in...
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...
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? ? m<-c(-0.2061826,0.5888406,0.2026079,1.0000000,0.2342754,0.6865078,-0.1265754) x <...
2010 Jan 04
0
Fixed Point on wideband-mode: Single Frame loss on 2000 Hz sine causes "freak off"
...; > best regards, > Frank > > > ---------- Urspr?ngliche Nachricht ---------- > Von: Frank Lorenz <Frank_wtal at web.de> > An: speex-dev at xiph.org > Datum: 18. Dezember 2009 um 13:36 > Betreff: [Speex-dev] Fixed Point on wideband-mode: Single Frame loss on 2000 Hz sine causes "freak off" > > Hi, > > I'm quite sure we found a bug inside the codec (1.2rc1, wideband mode). It only > occurs when speex is compiled with the FIXED_POINT flag. > > I feed in a 2000 Hz sine wave (-15 dBFS). When I simulate a single frame loss > (i.e. p...
2017 Nov 12
2
create waveform sawtooth
My tuneR sawtooth wave function generator is broken. When I use the sine function, I get exactly what I expect: a sine wave whose frequency is defined by the freq parameter. In particular, higher frequencies have shorter wavelengths (more cycles per second means shorter waves). When I create a sawtooth wave, the opposite seems to occur: higher frequencies result in lo...
2010 Jan 13
0
Fwd: Re: Fixed Point on wideband-mode: Single Frame loss on 2000 Hz sine causes "freak off"
...rds, > Frank > > > > ---------- Urspr?ngliche Nachricht ---------- > Von: Frank Lorenz <Frank_wtal at web.de> > An: speex-dev at xiph.org > Datum: 4. Januar 2010 um 09:57 > Betreff: Re: [Speex-dev] Fixed Point on wideband-mode: Single Frame loss > on 2000 > Hz sine causes "freak off" > > > Hi Jean-Marc, all, > > I didn't get any response to my issue up to now and would like to now if > anyone > can reproduce this behaviour and if there is some idea what happens. I am > willing to fix this issue, but because I do not know...
2014 Dec 03
2
[PATCH] test_compression.sh
...#39;s not a problem anyway. The number behaves just right. * Remove the $((${size}+10)). It's not needed, and it's a lie. In fact, the actual test FAILs (369513 with -5 vs 369516 with -6), but this +10 hides it! Two more things not addressed in this diff: 1. The input test file (noisy-sine.wav) needs to be present already, probably as an artifact of some previous test. So ./test_compression does not work standalone. I am leaving this till I figure out the right uniform way for all the test* to have their test files generated. 2. The 'wc -c' needs to actually read the whole f...