search for: nframes

Displaying 20 results from an estimated 52 matches for "nframes".

Did you mean: frames
2007 Sep 04
2
Confusion using "functions to access the function call stack" example section
I was going through the example below which is taken from the example section in the R documentation for accessing the function call stack. I am confused and I have 3 questions that I was hoping someone could answer. 1) why is y equal to zero even though the call was done with gg(3) 2) what does parents are 0,1,2,0,4,5,6,7 mean ? I understand what a parent frame is but how do the #'s relate
2010 Jul 09
2
select columns from vector of column names
Hi I want to extract columns from a data frame using a vector with the desired column names. This short example uses the select argument in the subset function to accomplish what I am trying to do. Is there a better solution? #names of desired columns colnames <- c("col1","col3") #my data data <-
2009 Oct 05
3
Questions about app_jack.c
Hello, My configuration is : Card 0 - kernel dummy sound card Card 1 - my soundcard I have a jackd running in background. My jackd launch command is : jackd --port-max 16 --realtime --no-mlock -d alsa --playback hw:1,0 --capture hw:1,0 --rate 8000 --period 1024 --shorts --inchannels 2 --outchannels 2 --dither triangular & 1 ) I open asterisk with chan_alsa.so connected (with asoundrc) to
2010 Jul 09
1
select columns from dataframe
Hi, I would like to extract columns from a dataframe using a vector of desired column names. The following working example uses the select argument in the subset function to accomplish what I am trying to do. Is there a better solution? Thanks. #my data data <- data.frame("col1"=c(1,2,3),"col2"=c("A","B","C"),"col3"=c(4,5,6))
2009 Jun 11
1
Thusnelda - Floating point exception in encoder_toplevel.c:209
...fairly scary block of code, I wouldn't have a clue where to begin trying to fix it! Here's what gdb has to say about it: -- #0 0x00007f8d0e3ce515 in oc_enc_select_qi (cpi=0x7f8d0c14f010, _qti=<value optimized out>, _trial=0) at enc/encoder_toplevel.c:209 209 rderiv=nframes[_qti]*KEY_RATIO[_qti]+drscale; Missing separate debuginfos, use: debuginfo-install SDL-1.2.13-7.fc10.x86_64 alsa-lib-1.0.20-1.fc10.x86_64 freetype-2.3.7-3.fc10.x86_64 glibc-2.9-3.x86_64 libjpeg-6b-43.fc10.x86_64 libogg-1.1.3-9.fc9.x86_64 libshout-2.2.2-3.fc9.x86_64 libvorbis-1.2.0-5.fc10.x86_64...
2024 Mar 13
1
Spurious warning in as.data.frame.factor()
? Tue, 12 Mar 2024 12:33:17 -0700 Herv? Pag?s <hpages.on.github at gmail.com> ?????: > The acrobatics that as.data.frame.factor() is going thru in order to > recognize a direct call don't play nice if as.data.frame() is an S4 > generic: > > ??? df <- as.data.frame(factor(11:12)) > > ??? suppressPackageStartupMessages(library(BiocGenerics)) > ???
2006 Dec 30
3
wrapping mle()
Hi, How can we set the environment for the minuslog function in mle()? The call in this code fails because the "ll" function cannot find the object 'y'. Modifying from the example in ?mle: library(stats4) ll <- function(ymax=15, xhalf=6) { -sum(stats::dpois(y, lambda=ymax/(1+x/xhalf), log=TRUE)) } fit.mle <- function(FUN, x, y) { loglik.fun <- match.fun(FUN)
2010 Jun 10
0
speex multi frame
Hi Alls Sorry for my newbe question I want to decode a speex multi frame stream I got 38 bytes packets and make 800 bytes buffer this is my simple code CSpeexCodec::CSpeexCodec(void) { // speex_bits_init(&m_speexBitsOut); m_pSpeexEncStateOut = speex_encoder_init(&speex_nb_mode); int nEhc=1; int nSamplePerSec = SAMPLES_PER_SEC; static int nQuality = 8;
2013 May 17
2
How could I see the source code of functions in an R package?
Hi, How could I see the source code of functions in an R package? If we type ?function_name , we will see documentations of the function_name. If we type function_name, is what returns just the source code? Could we just save it in an .R file and modify as we want? However, it seems that sometimes the source code is hidden (or stored elsewhere?) As an example, could we see the source
2008 Apr 04
0
speexdec 1.2.3
...id*)&speex_version); printf ("speexdec version %s\n", speex_version); printf ("Copyright (C) 2002-2006 Jean-Marc Valin\n"); } static void *process_header(ogg_packet *op, spx_int32_t enh_enabled, spx_int32_t *frame_size, int *granule_frame_size, spx_int32_t *rate, int *nframes, int forceMode, int *channels, SpeexStereoState *stereo, int *extra_headers, int quiet) { void *st; const SpeexMode *mode; SpeexHeader *header; int modeID; SpeexCallback callback; header = speex_packet_to_header((char*)op->packet, op->bytes); if (!header) {...
2008 Apr 04
2
speexdec 1.2.3
On Fri, Apr 4, 2008 at 12:19 AM, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote: > Jahn, Ray (R.) a ?crit : > > > Dear Speex codec community: > > > > I am working on conversion of voice files. I could not figure out how to use speexdec.exe 1.2.3 in piped mode in order to avoid the creation of the potentially large intermediate *.wav or *.pcm files. Any
1997 Jun 06
1
R-beta: nlm
I am trying to use the function "nlm" to find the mle. I want to use a generic function for the likelihood which would require me to use both the parameters and the data as arguments. But nlm requires the function to have only the parameters as arguments for this function (see example below). > testfun <- function(x,y) sum((x-y)^2) # x - parameters, y - data >
2018 May 10
2
using for loop with data frames.
Hi, Is it possible use a loop to process many data frames in the same way? For example, if I have three data frames, all with same variables df_bs_id1 <- read.csv("test1.csv",header =TRUE) df_bs_id2 <- read.csv("test2.csv",header =TRUE) df_bs_id3 <- read.csv("test3.csv",header =TRUE) How could I would implement a code loop that , for instance, would
2023 Jul 06
2
logic tweak needed for as.data.frame.<class> deprecation warning
Continuing the thread started on R-package-devel, here: https://stat.ethz.ch/pipermail/r-package-devel/2023q3/009307.html The logic of the now soft-deprecated as.data.frame.<class>, > body(as.data.frame.integer)[[2L]] if ((sys.nframe() <= 1L || sys.call(-1L)[[1L]] != quote(as.data.frame)) && nzchar(Sys.getenv("_R_CHECK_AS_DATA_FRAME_EXPLICIT_METHOD_")))
2013 Dec 06
2
Using assign with mapply
I have a data frame whose first colum contains the names of the variables and whose second colum contains the values to assign to them: : kkk <- data.frame(vars=c("var1", "var2", "var3"), vals=c(10, 20, 30), stringsAsFactors=F) If I do : assign(kkk$vars[1], kkk$vals[1]) it works : var1 [1] 10 However, if I try with mapply
2006 Dec 09
1
one more question about speex_bits_insert_terminator and speex_bits_write
Hi everybody, I have been examining on how I can use speex completely so I have one more question. I looked at examples and source code and it goes on. speex_bits_insert_terminator is called in speex_bits_write function. Shall I call this method one more time anywhere? Because in speexenc project, firstly speex_bits_insert_terminator is called then speex_bits_write is called when we assume that
2007 Feb 14
0
environment confusion
I'm in a bit beyond my depth with environments and such. The environment of a particular function, which I've set so it should have the things it needs, seems to be getting "lost" at some point during a call sequence. It's hard to come up with a _simple_ reproducible example, although if anyone's sufficiently interested I can post the package somewhere -- with the
2009 Sep 14
0
Save all objects in all environment stack
Dear R Developers, I am writing a function that would save all objects in all environments 'visible' from the point where the function is called (very much like save.image, but kind of saving the entire stack). I figured that the call lapply (seq(0, sys.nframe()), function(i) ls(sys.frame(i), all.names=T)) will list all such objects. However not all of them seem to be visible, see a
2005 Dec 22
1
Problems with passing ... to a function
Dear useRs! I have written a function that should pass argument "m" to the next function, however it does not! Please have a look at the function below that shows a problem and tell me what I am missing. As you can see, the "blocks" argument is passed corectly, while "m" is not. Best, Ales Ziberna opt.par.new<-function( #function for optimizig
2008 Apr 21
3
Decoding multiple Speex frames
Hello, Could you please explain or send an example for decoding a packet that contains multiple Speex frames. According to the API document the speex_decode_int() decodes only one frame of speech. Best regards, Danny Peled R&D Software Engineer Intelligence Solutions NICE Systems Ltd. ISRAEL *+ (972) 9 769 7161 ? + (972) 54 4 602840 *Danny.Peled at nice.com <mailto:*Danny.Peled at