search for: sweep

Displaying 20 results from an estimated 604 matches for "sweep".

Did you mean: sleep
2015 Jan 28
2
[Q] Get formal arguments of my implemented S4 method
...m.meth)") >str(norm.meth) >message("show(norm.meth at .Data)") >show(norm.meth at .Data) Last show() displays this: function (object, ...) { .local <- function (object, method = c("median", "vs", "tukey"), calc.medians = TRUE, sweep.cols = calc.medians, recalc.after.sweep = sweep.cols, ...) { .do_normalize(object, method = match.arg(method), calc.medians = calc.medians, sweep.cols = sweep.cols, recalc.after.sweep = recalc.after.sweep, ...) }...
2015 Jan 28
2
[Q] Get formal arguments of my implemented S4 method
...fault values, argname as key for UI label lookups, etc. So I want something much more like the formals of the implementation: { "object", "method": c("median", "vs", "tukey"), "calc.medians": TRUE, "sweep.cols": calc.medians, "recalc.after.sweep": sweep.cols, "?" } not those of the generic: { "object", "?" } From: Michael Lawrence <lawrence.michael at gene.com> Date: Wednesday, January 28, 2015 11:28 AM To: "Roebu...
2005 Jun 20
6
sweep() and recycling
Hi I had a hard-to-find bug in some of my code the other day, which I eventually traced to my misusing of sweep(). I would expect sweep() to give me a warning if the elements don't recycle nicely, but X <- matrix(1:36,6,6) sweep(X,1,1:5,"+") [,1] [,2] [,3] [,4] [,5] [,6] [1,] 2 9 16 23 30 32 [2,] 4 11 18 25 27 34 [3,] 6 13 20 22 29 36 [4,]...
2018 Oct 25
2
Possible bug in Opus 1.3 (opus-tools-0.2-opus-1.3)?
Hi! Playing with Opus 1.3 I converted a tone sweep with a sample rate of 96kHz (just for fun). Before I had converted that from WAV to FLAC, and to Vorbis without problems. With Opus I noticed that the file size for 48kHz and 48 kbps compared to 96kHz Vorbis at 31kbps is about double the size and it sounds even worse (than Vorbis) (there is a lot o...
2009 Mar 17
2
sweep?
I am having a hard time understanding just what 'sweep' does. The documentation states: Return an array obtained from an input array by sweeping out a summary statistic. So what does it mean "weeping out a summary statistic"? Thank you. Kevin
2012 Aug 04
1
how to coerce the result of sweep to be an array if result of FUN is a string?
Hi, I would like to use sweep to "sweep out" proportions and confidence intervals for an array, however when I supply a function which returns a string (containing something like "9% (3-18%)") I get back a list instead of an array, here is a simplified example: # example showing that sweep does not retur...
2004 Aug 06
1
preliminary Speex support in Sweep
Hi Jean-Marc and others, I put Speex support in Sweep (a sound editor) yesterday, and had some fun with it :) I'd like to get some feedback before releasing it publically. I'm not really used to speech codecs (I work more with music) but I've been quite impressed at the file size and quality (especially when you hear what I did with some...
2018 Nov 02
6
Antw: Re: Possible bug in Opus 1.3 (opus-tools-0.2-opus-1.3)?
...corrupted NTFS file system that ate many important files on an USB stick... The FLAC version of the original is almost 6MB and it can be downloaded slowly from this time-limited link: https://sbr5vjid0jgmce4q.myfritz.net:40262/nas/filelink.lua?id=0ba5a10529a6fe7b On the meaning of a logarithmic sweep: If you use foobar2000 and the "Spectrum" you can see the bar move (once it reached 50Hz, a change request for displaying lower frequencies had been denied): It should move linearly on foobar's logarithmic scale (as indicated in the file's comment). Actually I don't know the...
2018 Nov 01
0
Possible bug in Opus 1.3 (opus-tools-0.2-opus-1.3)?
(Please wrap your lines.) On Oct 26 01:38:34, Ulrich.Windl at rz.uni-regensburg.de wrote: > Playing with Opus 1.3 I converted a tone sweep with a sample rate of 96kHz (just for fun). Before I had converted that from WAV to FLAC, and to Vorbis without problems. Can you please post the original wav? I am not sure what Audacity means by a logarithmisch sweep. Is that a fixed number of Hertz per second (SoX calls that linear)? Or a fixe...
2015 Jan 29
0
[Q] Get formal arguments of my implemented S4 method
...bel lookups, etc. > > So I want something much more like the formals of the implementation: > > { > "object", > "method": c("median", "vs", "tukey"), > "calc.medians": TRUE, > "sweep.cols": calc.medians, > "recalc.after.sweep": sweep.cols, > "?" > } > > not those of the generic: > > { > "object", > "?" > } > > > From: Michael Lawrence <lawrence.michael at gene.com>...
2015 Jan 29
3
[Q] Get formal arguments of my implemented S4 method
...t;> So I want something much more like the formals of the implementation: >> >> { >> "object", >> "method": c("median", "vs", "tukey"), >> "calc.medians": TRUE, >> "sweep.cols": calc.medians, >> "recalc.after.sweep": sweep.cols, >> "?" >> } >> >> not those of the generic: >> >> { >> "object", >> "?" >> } >> >> >> From: M...
1998 Aug 21
2
couldn't find FUN
The call to sweep in this function which was working in 0.62.2 is giving me trouble in 62.3: prcomponents <- function(x, center=TRUE, scale=TRUE, N=nrow(x)-1) {if (center) center <- apply(x,2,mean) else center <- rep(0, ncol(x)) if (scale) scale <- sqrt(apply(x,2,var)) else...
2015 Jan 28
0
[Q] Get formal arguments of my implemented S4 method
...sage("show(norm.meth at .Data)") > >show(norm.meth at .Data) > > > Last show() displays this: > > function (object, ...) > { > .local <- function (object, method = c("median", "vs", "tukey"), > calc.medians = TRUE, sweep.cols = calc.medians, > recalc.after.sweep = sweep.cols, ...) > { > .do_normalize(object, > method = match.arg(method), > calc.medians = calc.medians, > sweep.cols = sweep.cols, > recalc.after.sweep = recalc.aft...
2024 Feb 29
2
[External] converting MATLAB -> R | element-wise operation
I decided to do a direct comparison of transpose and sweep. library(microbenchmark) NN <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 2, byrow = TRUE) # Example matrix lambda <- c(2, 3, 4) # Example vector colNN <- t(NN) microbenchmark( sweep = sweep(NN, 2, lambda, "/"), transpose = t(t(NN)/lambda), colNN = colNN/lambda ) Un...
2018 Nov 05
0
Antw: Re: Antw: Re: Possible bug in Opus 1.3
...; Apparently it did (and also reduced the 24bit to 16bit). >> > >> >> Why using 96kHz in the original: AFAIK Vorbis and Opus both use >> >> frequency components to encode the file. >> > >> > What frequency components are those, >> > in a sweep from 0 to 20kHz? >> >> The frequency component at any time should be more or less exactly one >> (THE frequency). > > Exactly. So what frequencies above 48kHz are there > to be sampled at 96kHz? None. Do we want to discuss the Nyquist theorem? (AFAIR it's for pure...
2019 Sep 04
7
[RFC] changing variable naming rules
...been proposed several times on this mailing list in the past. Most recent one was by Michael Platings in February this year [1], and there seems to be a general consensus that the status quo is not ideal. In the previous RFC thread, I nominated lld [2] as a starter project for renaming and made a sweeping change to rename variables in a few commits. This renaming went well -- even though it broke buildbots, I managed to unbreak them in a timely manner, and more importantly, it has been reported that several downstream repos have successfully migrated to the new naming scheme using a tool that I w...
2007 Jun 29
1
sweep sanity checking?
A friend of mine just got bitten by the fact that sweep() will happily sweep out a STATS vector of an arbitrary length -- even one whose length is not a divisor of any of the margins -- without complaining. I know the answer to this could be "well just don't do that", but it's easy to make a mistake in which margin you're sweeping...
2019 Sep 07
2
[RFC] changing variable naming rules
...posed several times on this mailing list in the past. Most recent one was by Michael Platings in February this year [1], and there seems to be a general consensus that the status quo is not ideal. > > In the previous RFC thread, I nominated lld [2] as a starter project for renaming and made a sweeping change to rename variables in a few commits. This renaming went well -- even though it broke buildbots, I managed to unbreak them in a timely manner, and more importantly, it has been reported that several downstream repos have successfully migrated to the new naming scheme using a tool that I w...
2010 Aug 11
2
Sweeping a zoo series
Given a long zoo matrix, the goal is to "sweep" out a statistic from the entire length of the sequences. longzoomatrix<-zoo(matrix(rnorm(720),ncol=6),as.yearmon(outer(1900,seq(0,length=120)/12,"+"))) cnames<-c(12345,23456,34567,45678,56789,67890) colnames(longzoomatrix)<-cnames longzoomatrix[1:24,] 12...
2010 Aug 11
0
sweep and zoo objects
...but we've lost the row names in the transformation of the matrix #So colnames(MYZOO)<-row.names(test) #Fixes that problem. Is there a more elegant way to do this??? # now this zoo object needs to be "swept" out of a much longer zoo object # with the same column names.. The 'sweep' function is "-" Sweep works normally by sweeping out a vector from an array (by column or by row sweep(x, MARGIN, STATS, FUN="-", check.margin=TRUE, ...) so in my example x would be a long yearmon zoo object with the same column names as MYZOO above, but decades of...