search for: imin

Displaying 20 results from an estimated 51 matches for "imin".

Did you mean: iain
2013 Apr 26
2
speed of a vector operation question
Hello, I am dealing with numeric vectors 10^5 to 10^6 elements long. The values are sorted (with duplicates) in the vector (v). I am obtaining the length of vectors such as (v < c) or (v > c1 & v < c2), where c, c1, c2 are some scalar variables. What is the most efficient way to do this? I am using sum(v < c) since TRUE's are 1's and FALSE's are 0's. This
2012 Apr 09
2
Help with Book example of Matrix application
...#returns the minimum value of d[i,j], i !=j and the row attaining #the minimum, for square symmetric d; no special policy on ties mind <- function(d) { n <- nrow(d) # add a column to identify row number for apply() dd <- cbind(d,1:n) wmins <- apply(dd[-n,],1,imin) # wins will be 2 X n, 1st row being indices and 2nd being values i <- which.min(wmins[2,]) j <- wmins[1,i] return(c(d[i,j],i,j)) } #this finds the location, value of the minimum in a row x imin <- function(x) { lx <- length(x) i <- x[lx] # original row...
2014 Jun 04
4
opus_multistream_encode_float not working in libopus 1.1
On Wed, Jun 4, 2014 at 4:31 PM, Timothy B. Terriberry <tterribe at xiph.org> wrote: > Alpha Thinktink wrote: >> max_data_bytes=-11 > > That value is passed in by you. I also don't think passing such a value > would have worked in earlier releases. It indicates the size of the > buffer you are passing to the encoder to receive the encoded output. Actually, I'm
2011 Oct 13
0
1) A memory leak in drivers/rhino.c 2) Wunused-but-set-variable.patch
I would like to have your comments regarding: 1) drivers/rhino.c ------------------ The following patch addresses some problems in drivers/rhino.c. Or that is what I think. I don't use this hardware. The patch: 1. Eliminates some usefulness definitions. 2. It removes code that evaluate the time. I can't see how the code actually does useful work. 3. The evaluation time code allocates memory. I don't see how that memory is freed. Index: b/drivers/rhino.c =====================================...
2016 Jun 12
2
Patches for adding 120 ms encoding
...a need for it to be split out into a separate function? If it had a simple and concise interface then it may make sense even with one call, but in this case the arguments that it requires are numerous and peculiar to the specific implementation in the calling function. > + bytes_per_frame = IMIN(1276,(out_data_bytes-3)/nb_frames); The current code uses this formula because with up to 3 frames per packet, in the worst case the combined packet will require nb_frames*bytes_per_frame + 3 bytes (where bytes_per_frame is the code 0 packet length, as it is here). However the worst case is worse...
2014 Jun 05
0
opus_multistream_encode_float not working in libopus 1.1
In debugging I saw: opus_multistream_encoder.c line 760 if(!vbr) max_data_bytes = IMIN(max_data_bytes, 3*st->bitrate_bps/(3*8*Fs/frame_size)); max_data_bytes after this code becomes -2 where as before it was 10200. I suspect it was because st->bitrate_bps was set to -1000 to indicate Auto bitrate. I imagine Max bitrate (-1) has a slightly similar effect. then in the same c...
2014 Jun 21
1
opus_multistream_encode_float not working in libopus 1.1
Hi, I just checked in a fix for the bug you reported. Let me know if it works. Cheers, Jean-Marc On 05/06/14 12:41 AM, Alpha Thinktink wrote: > In debugging I saw: > opus_multistream_encoder.c > line 760 > if(!vbr) > max_data_bytes = IMIN(max_data_bytes, > 3*st->bitrate_bps/(3*8*Fs/frame_size)); > > max_data_bytes after this code becomes -2 where as before it was > 10200. I suspect it was because st->bitrate_bps was set to -1000 to > indicate Auto bitrate. I imagine Max bitrate (-1) has a slightly > simila...
2016 Jun 27
2
Patches for adding 120 ms encoding
...more > explicit in opus_encode_native. I agree though that there are a lot of > input arguments (it could be reduced by 1 by moving the nr_subframes > calculation in here as well). I can also undo this split if this is > preferred? > > >> >> > + bytes_per_frame = IMIN(1276,(out_data_bytes-3)/nb_frames); >> >> The current code uses this formula because with up to 3 frames per >> packet, in the worst case the combined packet will require >> nb_frames*bytes_per_frame + 3 bytes (where bytes_per_frame is the code >> 0 packet length, as i...
2016 Jun 28
1
Patches for adding 120 ms encoding
...there are a lot of > >> input arguments (it could be reduced by 1 by moving the nr_subframes > >> calculation in here as well). I can also undo this split if this is > >> preferred? > >> > >> > >>> > >>> > + bytes_per_frame = IMIN(1276,(out_data_bytes-3)/nb_frames); > >>> > >>> The current code uses this formula because with up to 3 frames per > >>> packet, in the worst case the combined packet will require > >>> nb_frames*bytes_per_frame + 3 bytes (where bytes_per_frame is the...
2012 Aug 09
1
How to find data in a map according to coordinates?
Hello, I have created a spatial map of temperature over an area thanks to interpolation. So I have temperature data everywhere on my map. My question is: how can I find temperature data on my map for a specific location according to coordinates? For this, I have a data frame containing 4 columns: "x" for longitude, "y" for latitude, "z" for altitude" and
2015 Apr 13
2
Availability of the 1.1.1 stable version
...t_size = F5*st->channels; else pcm_transition_silk_size = F5*st->channels; } *So transition is made as 1 called this,* if (transition && mode == MODE_CELT_ONLY) { pcm_transition = pcm_transition_celt; opus_decode_frame(st, NULL, 0, pcm_transition, IMIN(F5, audiosize), 0); } *In "opus_decode_frame" again, as data is passed as NULL, goes to else part* if (data != NULL) { audiosize = st->frame_size; mode = st->mode; ec_dec_init(&dec,(unsigned char*)data,len); } else { audiosize = frame_size;...
2016 Jun 13
0
Patches for adding 120 ms encoding
...nd it makes the purpose of this code more explicit in opus_encode_native. I agree though that there are a lot of input arguments (it could be reduced by 1 by moving the nr_subframes calculation in here as well). I can also undo this split if this is preferred? > > > + bytes_per_frame = IMIN(1276,(out_data_bytes-3)/nb_frames); > > The current code uses this formula because with up to 3 frames per > packet, in the worst case the combined packet will require > nb_frames*bytes_per_frame + 3 bytes (where bytes_per_frame is the code > 0 packet length, as it is here). However...
2010 Sep 30
2
GUI Red-R
...iento", que lo que tratan es de ordenar los pasos que intervienen en un proceso (proceso=análisis, reporte, etc.) y la ayuda que brindan los softwares, es que los objetos ya definidos para las distintas tareas.Hay algunos de estos programas: Enterprice guide y miner de SAS, Clementine de SPSS, Iminer de Tibco (Splus), Weka, Rapidminer, etc.Para empezar no esta mal, pero si lo comparas con Clementine por ejemplo, aún le falta algunas cosas (por obvias razones, el costo del software compensa las facilidades).Personalmente prefiero el código, ya que tengo mas libertad de manejar los objetos como...
2015 Apr 16
3
Availability of the 1.1.1 stable version
...lk_size = F5*st->channels; > } > > *_So transition is made as 1 called this,_* > > if (transition && mode == MODE_CELT_ONLY) > { > pcm_transition = pcm_transition_celt; > opus_decode_frame(st, NULL, 0, pcm_transition, IMIN(F5, > audiosize), 0); > } > > *_In "opus_decode_frame" again, as data is passed as NULL, goes to > else part_* > > if (data != NULL) > { > audiosize = st->frame_size; > mode = st->mode; >...
2019 May 27
0
opus-1.3.1 patch for ARM Cortex-M4F (single precision)
...frame_stationarity += stationarity; @@ -748,7 +748,7 @@ static void tonality_analysis(TonalityAn neighbouring bands. */ float boost = MAX16(0, leakage_to[b] - band_log2[b]) + MAX16(0, band_log2[b] - (leakage_from[b]+LEAKAGE_OFFSET)); - info->leak_boost[b] = IMIN(255, (int)floor(.5 + 64.f*boost)); + info->leak_boost[b] = IMIN(255, (int)floor(.5f + 64.f*boost)); } for (;b<LEAK_BANDS;b++) info->leak_boost[b] = 0; diff -Naupr opus-1.3.1-vanilla/src/opus_encoder.c opus-1.3.1/src/opus_encoder.c --- opus-1.3.1-vanilla/src/opus_encoder.c...
2016 Jun 27
0
Antw: Re: Patches for adding 120 ms encoding
...encode_native. I agree though that there are a lot of >> input arguments (it could be reduced by 1 by moving the nr_subframes >> calculation in here as well). I can also undo this split if this is >> preferred? >> >> >>> >>> > + bytes_per_frame = IMIN(1276,(out_data_bytes-3)/nb_frames); >>> >>> The current code uses this formula because with up to 3 frames per >>> packet, in the worst case the combined packet will require >>> nb_frames*bytes_per_frame + 3 bytes (where bytes_per_frame is the code >>> 0...
2016 Jun 10
2
Patches for adding 120 ms encoding
Hi, I wondered if are there any further thoughts on these patches? Thanks, Felicia On Thu, Jun 2, 2016 at 2:13 PM Felicia Lim <flim at google.com> wrote: > OK, I've amended the second patch and also added 80 and 100 ms. > > Thanks, > Felicia > > > On Thu, Jun 2, 2016 at 7:20 AM Jean-Marc Valin <jmvalin at jmvalin.ca> wrote: > >> On 06/01/2016 02:06
2015 Apr 16
2
Availability of the 1.1.1 stable version
...; > *_So transition is made as 1 called this,_* > > > > if (transition && mode == MODE_CELT_ONLY) > > { > > pcm_transition = pcm_transition_celt; > > opus_decode_frame(st, NULL, 0, pcm_transition, IMIN(F5, > > audiosize), 0); > > } > > > > *_In "opus_decode_frame" again, as data is passed as NULL, goes to > > else part_* > > > > if (data != NULL) > > { > >...
2001 Oct 03
0
Launching OGG streams
Hi all: ;I wish to raise something that has, in my opinion, not been properly dealt with. With the iminent release of icecast2 and vorbis 1.0, I feel that it needs to be sorted out. The problem is that of how to launch an ogg stream from a web browser. In short, what metafile should be used, or do we need to invent our own? Let me illustrate the problem. Using MP3 streaming as an example, we have...
2016 Jan 09
0
Wine release 1.9.1
...dary for ME_CheckCharOffsets only when richedit_check channel was opened. Jared Smudde (3): winefile: Use own icon in run dialog. winefile: Set MDI child icon. shlwapi: Fix OS_TABLETPC typo. J?zef Kucia (28): wined3d: Recognize SM4 imax opcode. wined3d: Recognize SM4 imin opcode. wined3d: Print opcode names instead of enum values. wined3d: Add support for buffers in wined3d_device_update_sub_resource(). wined3d: Implement SM4 sample_l instruction. d3d11/tests: Add test for SM4 sample_l instruction. d3d10core/tests: Add test for SM4 samp...