search for: ylen

Displaying 4 results from an estimated 4 matches for "ylen".

Did you mean: len
2011 Jul 31
3
export/import matrix
...03 103 104 104 104 [5,] 104 104 105 105 105 105 105 104 104 103 104 104 105 105 I use this data to represent a 3D map with the follwing script and it works PEFECT! > y<- 2*data > x <- 10* (1:nrow(y)) > z <- 10* (1:ncol(y)) > ylim <- range(y) > ylen <-ylim[2] - ylim[1] + 1 > colorlut <- terrain.colors(ylen) > col <- colorlut[y-ylim[1] + 1] > rgl.open() > rgl.surface(x,z,y, color=col, back="lines") Then I export it as write.table(data, file="datam.txt", row.names=TRUE, col.names=TRUE), when I import i...
2008 May 03
2
Resampler (no api)
...ride = st->out_stride = 1; - speex_resampler_process_native(st, channel_index, NULL, in_len, y, out_len); - } - st->in_stride = istride_save; - st->out_stride = ostride_save; - for (i=0;i<*out_len;i++) - out[i*st->out_stride] = WORD2INT(y[i]); + const unsigned int ylen = (olen < FIXED_STACK_ALLOC) ? olen : FIXED_STACK_ALLOC; + VARDECL(spx_word16_t *ystack); + ALLOC(ystack, ylen, spx_word16_t); #else - spx_word16_t x[FIXED_STACK_ALLOC]; - spx_word16_t y[FIXED_STACK_ALLOC]; - spx_uint32_t ilen=*in_len, olen=*out_len; - istride_save = st->in_strid...
2008 May 03
0
Resampler, memory only variant
...ride = st->out_stride = 1; - speex_resampler_process_native(st, channel_index, NULL, in_len, y, out_len); - } - st->in_stride = istride_save; - st->out_stride = ostride_save; - for (i=0;i<*out_len;i++) - out[i*st->out_stride] = WORD2INT(y[i]); + const unsigned int ylen = (olen < FIXED_STACK_ALLOC) ? olen : FIXED_STACK_ALLOC; + VARDECL(spx_word16_t *ystack); + ALLOC(ystack, ylen, spx_word16_t); #else - spx_word16_t x[FIXED_STACK_ALLOC]; - spx_word16_t y[FIXED_STACK_ALLOC]; - spx_uint32_t ilen=*in_len, olen=*out_len; - istride_save = st->in_strid...
2002 Oct 02
6
help to make a map on R
Hi all, I need a little help for construct an state's map on R. The first problem is to get the data. I have a datafile of longitude and latitude in the follow format: trajectory latitude longtude T -22.045618 -51.287056 T -22.067078 -51.265888 T -22.067039 -51.207249 T -22.059690 -48.089695 T -22.075529 -48.074608 T -22.072460 -48.044472 T -22.062767 -48.298473 T -22.077349